From 198004233b111334df7ca82954fe61a2a1ad3bd5 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Fri, 25 Dec 2020 00:55:10 +0100 Subject: Setup vulkan and vulkan loader --- src/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bac7a7a..75c689b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,5 @@ include_directories(${CMAKE_SOURCE_DIR}/include) +include_directories(${Vulkan_INCLUDE_DIRS}) add_executable( path-tracer @@ -12,4 +13,9 @@ add_executable( lambertian.cpp metal.cpp dielectric.cpp + vulkan-loader.cpp ) + +if(UNIX) + target_link_libraries(path-tracer ${CMAKE_DL_LIBS}) +endif() -- cgit v1.3