merge with organizing targets

This commit is contained in:
Bechir
2024-03-08 13:28:34 +01:00
parent 47d381d299
commit 146d2aed19
7 changed files with 44 additions and 69 deletions

View File

@ -17,4 +17,16 @@ set_target_properties(tests PROPERTIES
include(CTest)
include(Catch)
catch_discover_tests(tests)
catch_discover_tests(tests)
if(AARE_BUILD_TESTS)
set(TestSources
${CMAKE_CURRENT_SOURCE_DIR}/src/defs.test.cpp
)
target_sources(tests PRIVATE ${TestSources} )
#Work around to remove, this is not the way to do it =)
# target_include_directories(tests PRIVATE ${CMAKE_SOURCE_DIR}/include/common)
target_link_libraries(tests PRIVATE core aare_compiler_flags)
endif()