CMakeLists.txt 540 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 7
FILE( GLOB DATAHANDLER_LOADERS_SRC "io/WLoader*.cpp" )
ADD_LIBRARY( dataHandler SHARED ${DATAHANDLER_SRC} ${DATAHANDLER_EXCEPTIONS_SRC}  ${DATAHANDLER_LOADERS_SRC})
8
TARGET_LINK_LIBRARIES( dataHandler common math ${Boost_LIBRARIES} niftiio biosig)
wiebel's avatar
wiebel committed
9 10 11

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