You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
508 B
CMake
24 lines
508 B
CMake
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)
|