Skip to content

Commit

Permalink
build teakra's test_generator.cpp only if building its unit tests is
Browse files Browse the repository at this point in the history
enabled

speeds up builds a bit
  • Loading branch information
nadiaholmquist committed Feb 24, 2024
1 parent 9430502 commit 21e2a87
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/teakra/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,16 @@ add_library(teakra
register.h
shared_memory.h
teakra.cpp
test.h
test_generator.cpp
test_generator.h
)

if (TEAKRA_BUILD_UNIT_TESTS)
target_sources(teakra PUBLIC
test.h
test_generator.cpp
test_generator.h
)
endif()

create_target_directory_groups(teakra)

target_link_libraries(teakra PRIVATE Threads::Threads)
Expand Down

0 comments on commit 21e2a87

Please sign in to comment.