Skip to content

Commit

Permalink
chore: Do not build source files used by the pre-built static libs
Browse files Browse the repository at this point in the history
  • Loading branch information
greyishsong committed Sep 18, 2023
1 parent 49ae8c5 commit ceb24df
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -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 $<$<CONFIG:Debug>:DEBUG>
PRIVATE SPDLOG_FMT_EXTERNAL
Expand Down

0 comments on commit ceb24df

Please sign in to comment.