From ceb24df7eb6606851e1f156bc044eef7294ffb0d Mon Sep 17 00:00:00 2001 From: greyishsong Date: Mon, 18 Sep 2023 20:38:00 +0800 Subject: [PATCH] chore: Do not build source files used by the pre-built static libs --- test/CMakeLists.txt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 21f6f3d..97b8425 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -36,9 +36,9 @@ set(DANDELION_SCENE_SOURCES ) set(DANDELION_UTILS_SOURCES ../src/utils/stb_image_wrapper.cpp - ../src/utils/ray.cpp - ../src/utils/aabb.cpp - ../src/utils/bvh.cpp + # ../src/utils/ray.cpp + # ../src/utils/aabb.cpp + # ../src/utils/bvh.cpp ../src/utils/kinetic_state.cpp ../src/utils/logger.cpp ) @@ -85,7 +85,15 @@ target_include_directories(${PROJECT_NAME} PRIVATE ../deps PRIVATE ../deps/glad/include ) -target_link_libraries(${PROJECT_NAME} glfw assimp) +target_link_directories(${PROJECT_NAME} PRIVATE ../deps) +target_link_libraries(${PROJECT_NAME} + glfw + assimp + debug dandelion-ray-debug + optimized dandelion-ray + debug dandelion-bvh-debug + optimized dandelion-bvh +) target_compile_definitions(${PROJECT_NAME} PRIVATE $<$:DEBUG> PRIVATE SPDLOG_FMT_EXTERNAL