Commit 7eff63ba authored by Kilian Lackhove's avatar Kilian Lackhove

Tester: use ADD_NEKTAR_EXECUTABLE to ensure Tester is linked against

pthread on recent boost versions
parent 5f9ff2ca
......@@ -33,7 +33,9 @@ IF(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
ADD_DEFINITIONS(-DRELWITHDEBINFO)
ENDIF()
ADD_EXECUTABLE(Tester ${TESTER_SOURCES} ${ARGN})
ADD_NEKTAR_EXECUTABLE(Tester COMPONENT tests SOURCES ${TESTER_SOURCES})
TARGET_LINK_LIBRARIES(Tester
${Boost_FILESYSTEM_LIBRARY}
${Boost_SYSTEM_LIBRARY}
......@@ -55,8 +57,3 @@ ENDIF( ${CMAKE_SYSTEM} MATCHES "Darwin-*")
SET_TARGET_PROPERTIES(Tester
PROPERTIES COMPILE_FLAGS "-UNEKTAR_USE_MPI")
INSTALL(TARGETS Tester
RUNTIME DESTINATION ${NEKTAR_BIN_DIR} COMPONENT test OPTIONAL
ARCHIVE DESTINATION ${NEKTAR_LIB_DIR} COMPONENT test OPTIONAL
LIBRARY DESTINATION ${NEKTAR_LIB_DIR} COMPONENT test OPTIONAL)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment