set(INCLUDE_DIRECTORIES ${ROOT_INCLUDE_DIR} ${GTEST_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/parbase ${CMAKE_SOURCE_DIR}/geobase ${CMAKE_SOURCE_DIR}/fairtools ${CMAKE_SOURCE_DIR}/base/sim ${CMAKE_SOURCE_DIR}/base/steer ${CMAKE_SOURCE_DIR}/test/testlib ) # Boost is needed for the regular expression handling # Need static boost libraries to link executable with path to library Set(Boost_USE_STATIC_LIBS TRUE) find_package(Boost COMPONENTS regex) If(Boost_FOUND) Set(INCLUDE_DIRECTORIES ${INCLUDE_DIRECTORIES} ${Boost_INCLUDE_DIRS} ) EndIf(Boost_FOUND) include_directories( ${INCLUDE_DIRECTORIES}) set(LINK_DIRECTORIES ${ROOT_LIBRARY_DIR} ${Boost_LIBRARY_DIRS} ) link_directories( ${LINK_DIRECTORIES}) ############### build the test ##################### If(Boost_FOUND) add_executable(_GTestFairModule _GTestFairModule.cxx) target_link_libraries(_GTestFairModule ${ROOT_LIBRARIES} ${Boost_LIBRARIES} ${GTEST_BOTH_LIBRARIES} FairTools FairTest Base ) Generate_Exe_Script(${CMAKE_CURRENT_SOURCE_DIR} _GTestFairModule) add_test(_GTestFairModule ${CMAKE_BINARY_DIR}/bin/_GTestFairModule) File(COPY ${CMAKE_SOURCE_DIR}/example/geometry/cave.geo DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) Else(Boost_FOUND) Message(STATUS "Could not build the test executable, because the Boost libraries are misssing.") EndIf(Boost_FOUND)