25 lines
517 B
CMake
25 lines
517 B
CMake
SET(TESTS
|
|
datetime.cpp
|
|
rawpacket.cpp
|
|
packet.cpp
|
|
utils.cpp
|
|
datetime_time.cpp
|
|
endianess.cpp
|
|
mseedpacket.cpp
|
|
url.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)
|