CMakeLists.txt 539 Bytes
Newer Older
wiebel's avatar
wiebel committed
1
ADD_SUBDIRECTORY( io )
math's avatar
math committed
2
ADD_SUBDIRECTORY( exceptions )
wiebel's avatar
wiebel committed
3

4
FILE( GLOB DATAHANDLER_SRC "*.cpp" "*.hpp" )
5
FILE( GLOB DATAHANDLER_EXCEPTIONS_SRC "exceptions/*.cpp" )
6
FILE( GLOB DATAHANDLER_LOADERS_SRC "io/WLoader*.cpp" )
7 8

ADD_LIBRARY( dataHandler SHARED ${DATAHANDLER_SRC} ${DATAHANDLER_EXCEPTIONS_SRC} ${DATAHANDLER_LOADERS_SRC} )
9
TARGET_LINK_LIBRARIES( dataHandler kernel common math ${Boost_LIBRARIES} niftiio biosig)
wiebel's avatar
wiebel committed
10 11 12

# Unit tests
IF( CXXTEST_FOUND )
13
  CXXTEST_ADD_TESTS_FROM_LIST( "${DATAHANDLER_SRC}" "dataHandler" )
wiebel's avatar
wiebel committed
14
ENDIF( CXXTEST_FOUND )