project() should only be called if the subdirectory, in fact, can be built standalone.
23 lines
585 B
CMake
23 lines
585 B
CMake
###############################################
|
|
### tests_dramsys ###
|
|
###############################################
|
|
|
|
add_executable(tests_dramsys
|
|
AddressDecoderTests.cpp
|
|
b_transport/b_transport.cpp
|
|
main.cpp
|
|
test_misc.cpp
|
|
test_utils.cpp
|
|
)
|
|
|
|
target_include_directories(tests_dramsys PUBLIC ${PROJECT_SOURCE_DIR})
|
|
set_target_properties(tests_dramsys PROPERTIES FOLDER tests)
|
|
target_link_libraries(tests_dramsys
|
|
DRAMSys::libdramsys
|
|
gtest_main
|
|
)
|
|
|
|
gtest_discover_tests(tests_dramsys
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|