CMakeLists.txt 1.16 KB
Newer Older
1
2
3
4
# Move the configuration file used for the configuration test
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/run-test.sh ${CMAKE_CURRENT_BINARY_DIR}/run-test.sh COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test-util.sh ${CMAKE_CURRENT_BINARY_DIR}/test-util.sh COPYONLY)

5
add_executable(example example.cpp)
6
target_link_libraries(example hepnos ${Boost_LIBRARIES})
7
8
9
10
11
12
13
14
15
16
17
18

set(CTEST_ENVIRONMENT "MKTEMP=mktemp" "TIMEOUT=timeout")

add_executable(DataStoreTest DataStoreTest.cpp HEPnOSTestMain.cpp)
target_link_libraries(DataStoreTest cppunit hepnos hepnos-service)

add_executable(DataSetTest DataSetTest.cpp HEPnOSTestMain.cpp)
target_link_libraries(DataSetTest cppunit hepnos hepnos-service)

add_executable(RunSetTest RunSetTest.cpp HEPnOSTestMain.cpp)
target_link_libraries(RunSetTest cppunit hepnos hepnos-service)

Matthieu Dorier's avatar
Matthieu Dorier committed
19
20
21
add_executable(RunTest RunTest.cpp HEPnOSTestMain.cpp)
target_link_libraries(RunTest cppunit hepnos hepnos-service)

22
23
24
add_test(NAME DataStoreTest COMMAND run-test.sh ./DataStoreTest)
add_test(NAME DataSetTest   COMMAND run-test.sh ./DataSetTest)
add_test(NAME RunSetTest    COMMAND run-test.sh ./RunSetTest)
Matthieu Dorier's avatar
Matthieu Dorier committed
25
add_test(NAME RunTest       COMMAND run-test.sh ./RunTest)