Commit bb010701 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[FIX] - this should fix the problem on systems without own niftilib/biosig.

parent 14989a85
......@@ -49,11 +49,12 @@ SET( OWExtNiftiZNZName "openwalnut_niftiznz" )
FIND_PACKAGE( niftilib QUIET )
IF( NIFTILIB_FOUND )
MESSAGE( STATUS "Using system installed nifitlib." )
INCLUDE_DIRECTORIES( ${NIFTILIB_INCLUDE_DIR} )
SET( OWExtNiftiIOName ${NIFTILIB_LIBRARY} )
MESSAGE( STATUS "Using system installed nifitlib." )
INCLUDE_DIRECTORIES( ${NIFTILIB_INCLUDE_DIR} )
SET( OWExtNiftiIOName ${NIFTILIB_LIBRARY} )
ELSE()
IF( EXISTS ext/nifti/CMakeLists.txt )
IF( EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ext/nifti/CMakeLists.txt" )
MESSAGE( STATUS "Found niftilib in \"${CMAKE_CURRENT_SOURCE_DIR}/ext/nifti\"" )
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR}/ext/nifti )
ADD_SUBDIRECTORY( ext/nifti )
ELSE()
......@@ -70,11 +71,12 @@ SET( OWExtBioSigName "openwalnut_biosig" )
FIND_PACKAGE( biosig QUIET )
IF( BIOSIG_FOUND )
MESSAGE( STATUS "Using system installed biosig." )
INCLUDE_DIRECTORIES( ${BIOSIG_INCLUDE_DIR} )
SET( OWExtBioSigName ${BIOSIG_LIBRARY} )
MESSAGE( STATUS "Using system installed biosig." )
INCLUDE_DIRECTORIES( ${BIOSIG_INCLUDE_DIR} )
SET( OWExtBioSigName ${BIOSIG_LIBRARY} )
ELSE()
IF( EXISTS ext/biosig/CMakeLists.txt )
IF( EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ext/biosig/CMakeLists.txt" )
MESSAGE( STATUS "Found biosig in \"${CMAKE_CURRENT_SOURCE_DIR}/ext/biosig\"" )
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR}/ext/biosig )
ADD_SUBDIRECTORY( ext/biosig )
ELSE()
......
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