Initial commit
This commit is contained in:
18
example_module/tests/CMakeLists.txt
Normal file
18
example_module/tests/CMakeLists.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
set(MODULE_NAME example_module)
|
||||
set(TEST_APP test_${MODULE_NAME})
|
||||
|
||||
set(TEST_SOURCES test_example_module.cpp
|
||||
test_app.cpp
|
||||
)
|
||||
|
||||
add_executable(${TEST_APP} ${TEST_SOURCES}
|
||||
)
|
||||
|
||||
target_link_libraries(${TEST_APP} PRIVATE daq::test_utils
|
||||
${SDK_TARGET_NAMESPACE}::${MODULE_NAME}
|
||||
)
|
||||
|
||||
add_test(NAME ${TEST_APP}
|
||||
COMMAND $<TARGET_FILE_NAME:${TEST_APP}>
|
||||
WORKING_DIRECTORY bin
|
||||
)
|
||||
Reference in New Issue
Block a user