Commit c6c29b16 authored by math's avatar math
Browse files

[FIX] repaired CMakeLists.txts so they build at least at ubuntu systems

parent cb1059dd
......@@ -22,7 +22,8 @@ ENDIF( CMAKE_HOST_SYSTEM MATCHES Windows )
# Package dependencies:
FIND_PACKAGE( Boost REQUIRED COMPONENTS program_options )
SET(Boost_USE_MULTITHREAD ON)
FIND_PACKAGE( Boost 1.36.0 REQUIRED program_options thread )
FIND_PACKAGE( CxxTest QUIET )
......@@ -109,4 +110,4 @@ ADD_CUSTOM_TARGET(cicheck
ADD_CUSTOM_TARGET( fixtures
ALL
COMMAND cp -rf ${PROJECT_SOURCE_DIR}/dataHandler/test/fixtures ${PROJECT_BINARY_DIR}/dataHandler/
COMMENT "Copy fixtures to the right place." )
\ No newline at end of file
COMMENT "Copy fixtures to the right place." )
......@@ -4,7 +4,7 @@ ADD_SUBDIRECTORY( exceptions )
FILE( GLOB DATAHANDLER_SRC "*.cpp" "*.hpp" )
FILE( GLOB DATAHANDLER_EXCEPTIONS_SRC "exceptions/*.cpp" )
ADD_LIBRARY( dataHandler SHARED ${DATAHANDLER_SRC} ${DATAHANDLER_EXCEPTIONS_SRC} )
TARGET_LINK_LIBRARIES( dataHandler boost_thread niftiio boost_filesystem )
TARGET_LINK_LIBRARIES( dataHandler niftiio ${Boost_LIBRARIES} )
# Unit tests
IF( CXXTEST_FOUND )
......
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