From 3dd870b001bef62aaa501257352d968d1346c7f2 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Sun, 25 Jul 2021 11:58:01 +0200 Subject: Use a different buffer for scene info, geometry, bvh and load gltf --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b2b34b6..b871d67 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,3 +1,5 @@ +find_package(nlohmann_json CONFIG REQUIRED) + add_definitions(-DNOMINMAX -D_USE_MATH_DEFINES) include_directories(${CMAKE_SOURCE_DIR}/include) @@ -22,6 +24,7 @@ add_executable( vk-api.cpp window.cpp scene.cpp + gltf.cpp ) if(UNIX AND NOT APPLE) @@ -29,3 +32,4 @@ if(UNIX AND NOT APPLE) endif() target_link_libraries(path-tracer PRIVATE ${LIBRARIES}) +target_link_libraries(path-tracer PRIVATE nlohmann_json nlohmann_json::nlohmann_json) -- cgit v1.3