Initial commit based on common repo commit ffeb9c9b
This commit is contained in:
23
libs/gempa/caps/test/CMakeLists.txt
Normal file
23
libs/gempa/caps/test/CMakeLists.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
SET(TESTS
|
||||
datetime.cpp
|
||||
rawpacket.cpp
|
||||
packet.cpp
|
||||
utils.cpp
|
||||
datetime_time.cpp
|
||||
endianess.cpp
|
||||
mseedpacket.cpp
|
||||
)
|
||||
|
||||
FOREACH(testSrc ${TESTS})
|
||||
GET_FILENAME_COMPONENT(testName ${testSrc} NAME_WE)
|
||||
SET(testName test_caps_${testName})
|
||||
ADD_EXECUTABLE(${testName} ${testSrc})
|
||||
SC_LINK_LIBRARIES_INTERNAL(${testName} unittest)
|
||||
SC_LINK_LIBRARIES(${testName} ${CURL_LIBRARIES} caps_client)
|
||||
|
||||
ADD_TEST(
|
||||
NAME ${testName}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
COMMAND ${testName}
|
||||
)
|
||||
ENDFOREACH(testSrc)
|
||||
Reference in New Issue
Block a user