build teakra's test_generator.cpp only if building its unit tests is

enabled

speeds up builds a bit
This commit is contained in:
Nadia Holmquist Pedersen 2024-02-24 01:47:04 +01:00
parent 9430502b16
commit 21e2a876ec
1 changed files with 8 additions and 3 deletions

View File

@ -32,10 +32,15 @@ add_library(teakra
register.h
shared_memory.h
teakra.cpp
)
if (TEAKRA_BUILD_UNIT_TESTS)
target_sources(teakra PUBLIC
test.h
test_generator.cpp
test_generator.h
)
endif()
create_target_directory_groups(teakra)