# Create a library called "libFairTest" which includes the source files # given in # the array . # The extension is already found. Any number of sources could be listed # here. # 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 unit_test_framework) Message("LIBS: ${Boost_LIBRARIES}") set(INCLUDE_DIRECTORIES ${CMAKE_SOURCE_DIR} ${Boost_INCLUDE_DIRS} ) include_directories( ${INCLUDE_DIRECTORIES}) set(LINK_DIRECTORIES ${Boost_LIBRARY_DIRS} ) link_directories( ${LINK_DIRECTORIES}) ############### build the library ##################### add_library(FairTest SHARED FairCaptureOutput.cxx FairTestOutputHandler.cxx FairTestNewOutputHandler.cxx ) target_link_libraries(FairTest ${Boost_LIBRARIES} )