Commit 70cfa9db authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[CHANGE #190] adapted cmake files to moved hpp files

parent bf46bda6
......@@ -145,13 +145,13 @@ ADD_CUSTOM_TARGET( tags DEPENDS ctags DEPENDS cscope )
# Checks style guide lines via the BrainLint tool against all source code files
# The output is colored when variable CMAKE_COLOR_MAKEFILE is set to ON,
# noncolored if it is set to OFF
FILE( GLOB_RECURSE STYLE_CPP ${PROJECT_SOURCE_DIR}/*.[c,h]pp )
FILE( GLOB_RECURSE STYLE_CPP ${PROJECT_SOURCE_DIR}/*.cpp )
FILE( GLOB_RECURSE STYLE_H ${PROJECT_SOURCE_DIR}/*.h )
# Set dirs to exclude from stylecheck
SET( EXCLUDE_DIRS "/dataHandler/io/nifti/;/dataHandler/io/biosig/;/dataHandler/io/biosig/XMLParser/" )
FOREACH( dirname ${EXCLUDE_DIRS} )
FILE( GLOB EXCLUDE_H ${PROJECT_SOURCE_DIR}${dirname}*.h )
FILE( GLOB EXCLUDE_CPP ${PROJECT_SOURCE_DIR}${dirname}*.[c,h]pp )
FILE( GLOB EXCLUDE_CPP ${PROJECT_SOURCE_DIR}${dirname}*.cpp )
FOREACH( fname ${EXCLUDE_H} )
LIST( REMOVE_ITEM STYLE_H ${fname} )
......
FILE( GLOB COMMON_SRC "*.[c,h]pp" )
FILE( GLOB COMMON_DATASTRUCTURES_SRC "datastructures/*.[c,h]pp" )
FILE( GLOB COMMON_EXCEPTIONS_SRC "exceptions/*.[c,h]pp" )
FILE( GLOB COMMON_SRC "*.cpp" )
FILE( GLOB COMMON_DATASTRUCTURES_SRC "datastructures/*.cpp" )
FILE( GLOB COMMON_EXCEPTIONS_SRC "exceptions/*.cpp" )
ADD_SUBDIRECTORY( datastructures )
......
FILE( GLOB COMMON_DATASTRUCTURES_SRC "*.[c,h]pp" )
FILE( GLOB COMMON_DATASTRUCTURES_SRC "*.cpp" )
# Unit tests
IF( CXXTEST_FOUND )
......
ADD_SUBDIRECTORY( io )
FILE( GLOB DATAHANDLER_SRC "*.[c,h]pp" )
FILE( GLOB DATAHANDLER_EXCEPTIONS_SRC "exceptions/*.[c,h]pp" )
FILE( GLOB DATAHANDLER_IO_SRC "io/*.[c,h]pp" ) # former WLoader
FILE( GLOB DATAHANDLER_SRC "*.cpp" )
FILE( GLOB DATAHANDLER_EXCEPTIONS_SRC "exceptions/*.cpp" )
FILE( GLOB DATAHANDLER_IO_SRC "io/*.cpp" ) # former WLoader
ADD_LIBRARY( dataHandler SHARED ${DATAHANDLER_SRC} ${DATAHANDLER_EXCEPTIONS_SRC} ${DATAHANDLER_IO_SRC} )
TARGET_LINK_LIBRARIES( dataHandler common math ${Boost_LIBRARIES} niftiio biosig ${OPENSCENEGRAPH_LIBRARIES})
......
ADD_SUBDIRECTORY( nifti )
ADD_SUBDIRECTORY( biosig )
FILE( GLOB DATAHANDLER_IO_SRC "*.[c,h]pp" )
FILE( GLOB DATAHANDLER_IO_SRC "*.cpp" )
# Unit tests
IF( CXXTEST_FOUND )
......
# Package dependencies:
ADD_SUBDIRECTORY( exceptions )
FILE( GLOB GE_EXCEPTIONS_SRC "exceptions/*.[c,h]pp" )
FILE( GLOB GE_SRC "*.[c,h]pp" )
FILE( GLOB GE_EXCEPTIONS_SRC "exceptions/*.cpp" )
FILE( GLOB GE_SRC "*.cpp" )
ADD_LIBRARY( ge SHARED ${GE_SRC} ${GE_EXCEPTIONS_SRC} )
TARGET_LINK_LIBRARIES( ge common ${OPENGL_gl_LIBRARY} ${OPENSCENEGRAPH_LIBRARIES} )
......
ADD_SUBDIRECTORY( qt4 )
FILE( GLOB GUI_SRC "*.[c,h]pp" )
FILE( GLOB GUI_SRC "*.cpp" )
ADD_LIBRARY( gui SHARED ${GUI_SRC} )
TARGET_LINK_LIBRARIES( gui common )
......
......@@ -26,7 +26,7 @@ SET(GUI_QT4_MOC_HDRS
QT4_WRAP_CPP(GUI_QT4_MOC_SRCS ${GUI_QT4_MOC_HDRS} )
FILE(GLOB GUI_QT4_SRC "*.[c,h]pp" "guiElements/*cpp" "datasetbrowser/*cpp" "ribbonMenu/*cpp" )
FILE(GLOB GUI_QT4_SRC "*.cpp" "guiElements/*cpp" "datasetbrowser/*cpp" "ribbonMenu/*cpp" )
ADD_LIBRARY( guiqt4 SHARED ${GUI_QT4_SRC} ${GUI_QT4_MOC_SRCS} )
......
FILE( GLOB KERNEL_SRC "*.[c,h]pp" )
FILE( GLOB KERNEL_SRC "*.cpp" )
FILE( GLOB_RECURSE MODULES_SRC "../modules/*.[c,h]pp" )
FILE( GLOB_RECURSE MODULES_SRC "../modules/*.cpp" )
ADD_SUBDIRECTORY( exceptions )
FILE( GLOB KERNEL_EXCEPTIONS_SRC "exceptions/*.[c,h]pp" )
FILE( GLOB KERNEL_EXCEPTIONS_SRC "exceptions/*.cpp" )
ADD_LIBRARY( kernel SHARED ${KERNEL_SRC} ${MODULES_SRC} ${KERNEL_EXCEPTIONS_SRC} )
TARGET_LINK_LIBRARIES( kernel common dataHandler ge math utils ${OPENSCENEGRAPH_LIBRARIES} )
......
ADD_SUBDIRECTORY( fiberSimilarity )
FILE( GLOB MATH_SRC "*.[c,h]pp" )
FILE( GLOB FIBERSIMILARITY_SRC "fiberSimilarity/*.[c,h]pp" )
FILE( GLOB MATH_SRC "*.cpp" )
FILE( GLOB FIBERSIMILARITY_SRC "fiberSimilarity/*.cpp" )
ADD_LIBRARY( math SHARED ${MATH_SRC} ${FIBERSIMILARITY_SRC} )
......
FILE( GLOB FIBERSIMILARITY_SRC "*.[c,h]pp" )
FILE( GLOB FIBERSIMILARITY_SRC "*.cpp" )
# Unit tests
IF( CXXTEST_FOUND )
......
FILE( GLOB_RECURSE MODULES_SRC "*.[c,h]pp" )
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" )
# Unit tests
IF( CXXTEST_FOUND )
......
FILE( GLOB_RECURSE MODULES_SRC "*.[c,h]pp" )
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" )
# Unit tests
IF( CXXTEST_FOUND )
......
FILE( GLOB_RECURSE MODULES_SRC "*.[c,h]pp" )
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" )
# Unit tests
IF( CXXTEST_FOUND )
......
FILE( GLOB_RECURSE MODULES_SRC "*.[c,h]pp" )
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" )
# Unit tests
IF( CXXTEST_FOUND )
......
FILE( GLOB_RECURSE MODULES_SRC "*.[c,h]pp" )
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" )
# Unit tests
IF( CXXTEST_FOUND )
......
FILE(GLOB UTILS_SRC "*.[c,h]pp")
FILE(GLOB UTILS_SRC "*.cpp")
ADD_LIBRARY( utils SHARED ${UTILS_SRC} )
TARGET_LINK_LIBRARIES( utils ${Boost_PROGRAM_OPTIONS_LIBRARY} common math )
......
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