Commit 182479b6 authored by ledig's avatar ledig
Browse files

add Header Files to CMake Files for MSVC

parent a567c73e
FILE( GLOB COMMON_SRC "*.cpp" )
FILE( GLOB COMMON_DATASTRUCTURES_SRC "datastructures/*.cpp" )
FILE( GLOB COMMON_EXCEPTIONS_SRC "exceptions/*.cpp" )
FILE( GLOB COMMON_SRC "*.cpp" "*.h" )
FILE( GLOB COMMON_DATASTRUCTURES_SRC "datastructures/*.cpp" "datastructures/*.h" )
FILE( GLOB COMMON_EXCEPTIONS_SRC "exceptions/*.cpp" "exceptions/*.h" )
ADD_SUBDIRECTORY( datastructures )
......
FILE( GLOB COMMON_DATASTRUCTURES_SRC "*.cpp" )
FILE( GLOB COMMON_DATASTRUCTURES_SRC "*.cpp" "*.h" )
# Unit tests
IF( OW_COMPILE_TESTS )
......
ADD_SUBDIRECTORY( io )
IF( CMAKE_HOST_SYSTEM MATCHES Windows )
FILE( GLOB DATAHANDLER_SRC "*.cpp" )
FILE( GLOB DATAHANDLER_EXCEPTIONS_SRC "exceptions/*.cpp" )
FILE( GLOB DATAHANDLER_IO_SRC "io/*.cpp" ) # former WLoader
FILE( GLOB EXCLUDE_biosig "io/*Biosig.cpp" )
FILE( GLOB DATAHANDLER_SRC "*.cpp" "*.h" )
FILE( GLOB DATAHANDLER_EXCEPTIONS_SRC "exceptions/*.cpp" "exceptions/*.h" )
FILE( GLOB DATAHANDLER_IO_SRC "io/*.cpp" "io/*.h" ) # former WLoader
FILE( GLOB EXCLUDE_biosig "io/*Biosig.cpp" "io/*Biosig.h" )
LIST( REMOVE_ITEM DATAHANDLER_IO_SRC ${EXCLUDE_biosig} )
ADD_LIBRARY( dataHandler ${DATAHANDLER_SRC} ${DATAHANDLER_EXCEPTIONS_SRC} ${DATAHANDLER_IO_SRC} )
TARGET_LINK_LIBRARIES( dataHandler common math ${Boost_LIBRARIES} niftiio ${OPENSCENEGRAPH_LIBRARIES})
ELSE()
FILE( GLOB DATAHANDLER_SRC "*.cpp" )
FILE( GLOB DATAHANDLER_EXCEPTIONS_SRC "exceptions/*.cpp" )
FILE( GLOB DATAHANDLER_IO_SRC "io/*.cpp" ) # former WLoader
FILE( GLOB DATAHANDLER_SRC "*.cpp" "*.h" )
FILE( GLOB DATAHANDLER_EXCEPTIONS_SRC "exceptions/*.cpp" "exceptions/*.h" )
FILE( GLOB DATAHANDLER_IO_SRC "io/*.cpp" "io/*.h" ) # former WLoader
ADD_LIBRARY( dataHandler SHARED ${DATAHANDLER_SRC} ${DATAHANDLER_EXCEPTIONS_SRC} ${DATAHANDLER_IO_SRC} )
TARGET_LINK_LIBRARIES( dataHandler common math utils ${Boost_LIBRARIES} niftiio biosig ${OPENSCENEGRAPH_LIBRARIES})
......
ADD_SUBDIRECTORY( nifti )
ADD_SUBDIRECTORY( biosig )
FILE( GLOB DATAHANDLER_IO_SRC "*.cpp" )
FILE( GLOB DATAHANDLER_IO_SRC "*.cpp" "*.h" )
# Unit tests
IF( OW_COMPILE_TESTS )
......
......@@ -10,5 +10,5 @@ ELSE()
SET( CMAKE_C_FLAGS "-w")
ENDIF()
FILE( GLOB BIOSIG_SRC "*.c" "*.cpp" "XMLParser/*.cpp" )
FILE( GLOB BIOSIG_SRC "*.c" "*.cpp" "*.h" "XMLParser/*.cpp" "XMLParser/*.h" )
ADD_LIBRARY( biosig SHARED ${BIOSIG_SRC} )
# Package dependencies:
ADD_SUBDIRECTORY( exceptions )
FILE( GLOB GE_EXCEPTIONS_SRC "exceptions/*.cpp" )
FILE( GLOB GE_SRC "*.cpp" )
FILE( GLOB GE_EXCEPTIONS_SRC "exceptions/*.cpp" "exceptions/*.h" )
FILE( GLOB GE_SRC "*.cpp" "*.h" )
IF( CMAKE_HOST_SYSTEM MATCHES Windows )
ADD_LIBRARY( ge ${GE_SRC} ${GE_EXCEPTIONS_SRC} )
......
ADD_SUBDIRECTORY( qt4 )
FILE( GLOB GUI_SRC "*.cpp" )
FILE( GLOB GUI_SRC "*.cpp" "*.h" )
IF( CMAKE_HOST_SYSTEM MATCHES Windows )
ADD_LIBRARY( gui ${GUI_SRC} )
......
......@@ -28,7 +28,7 @@ SET(GUI_QT4_MOC_HDRS
QT4_WRAP_CPP(GUI_QT4_MOC_SRCS ${GUI_QT4_MOC_HDRS} )
FILE(GLOB GUI_QT4_SRC "*.cpp" "guiElements/*cpp" "datasetbrowser/*cpp" "ribbonMenu/*cpp" "events/*.cpp" )
FILE(GLOB GUI_QT4_SRC "*.cpp" "guiElements/*.cpp" "datasetbrowser/*.cpp" "ribbonMenu/*.cpp" "*.h" "guiElements/*.h" "datasetbrowser/*.h" "ribbonMenu/*.h" )
IF( CMAKE_HOST_SYSTEM MATCHES Windows )
ADD_LIBRARY( guiqt4 ${GUI_QT4_SRC} ${GUI_QT4_MOC_SRCS} )
......
FILE( GLOB KERNEL_SRC "*.cpp" )
FILE( GLOB KERNEL_SRC "*.cpp" "*.h" )
FILE( GLOB_RECURSE MODULES_SRC "../modules/*.cpp" )
FILE( GLOB_RECURSE MODULES_SRC "../modules/*.cpp" "../modules/*.h" )
ADD_SUBDIRECTORY( exceptions )
FILE( GLOB KERNEL_EXCEPTIONS_SRC "exceptions/*.cpp" )
FILE( GLOB KERNEL_EXCEPTIONS_SRC "exceptions/*.cpp" "exceptions/*.h" )
IF( CMAKE_HOST_SYSTEM MATCHES Windows )
ADD_LIBRARY( kernel ${KERNEL_SRC} ${MODULES_SRC} ${KERNEL_EXCEPTIONS_SRC} )
......
ADD_SUBDIRECTORY( fiberSimilarity )
FILE( GLOB MATH_SRC "*.cpp" )
FILE( GLOB FIBERSIMILARITY_SRC "fiberSimilarity/*.cpp" )
FILE( GLOB MATH_SRC "*.cpp" "*.h" )
FILE( GLOB FIBERSIMILARITY_SRC "fiberSimilarity/*.cpp" "fiberSimilarity/*.h" )
IF( CMAKE_HOST_SYSTEM MATCHES Windows )
ADD_LIBRARY( math ${MATH_SRC} ${FIBERSIMILARITY_SRC} )
......
FILE( GLOB FIBERSIMILARITY_SRC "*.cpp" )
FILE( GLOB FIBERSIMILARITY_SRC "*.cpp" "*.h" )
# Unit tests
IF( OW_COMPILE_TESTS )
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" )
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
# Unit tests
IF( OW_COMPILE_TESTS )
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" )
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
# Unit tests
IF( OW_COMPILE_TESTS )
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" )
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
# Unit tests
IF( OW_COMPILE_TESTS )
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" )
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
# Unit tests
IF( OW_COMPILE_TESTS )
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" )
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
# Unit tests
IF( OW_COMPILE_TESTS )
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" )
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
# Unit tests
IF( CXXTEST_FOUND )
......
FILE(GLOB UTILS_SRC "*.cpp")
FILE(GLOB UTILS_SRC "*.cpp" "*.h" )
IF( CMAKE_HOST_SYSTEM MATCHES Windows )
ADD_LIBRARY( utils ${UTILS_SRC} )
......
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