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

[CHANGE] - radically removed all Cmake crap and replaced it by one file. This...

[CHANGE] - radically removed all Cmake crap and replaced it by one file. This now compiles EXt and the ow core.
parent 45df041c
This diff is collapsed.
FILE( GLOB COMMON_SRC "*.cpp" "*.h" )
FILE( GLOB COMMON_DATASTRUCTURES_SRC "datastructures/*.cpp" "datastructures/*.h" )
FILE( GLOB COMMON_EXCEPTIONS_SRC "exceptions/*.cpp" "exceptions/*.h" )
FILE( GLOB MATH_SRC "math/*.cpp" "math/*.h" "math/linearAlgebra/*.cpp" "math/linearAlgebra/*.h" )
ADD_SUBDIRECTORY( datastructures )
ADD_SUBDIRECTORY( constraints )
ADD_SUBDIRECTORY( math )
SET( LIB_NAME "${OWCommonName}" )
SET( ${LIB_NAME}_COMBINER_SRC ${COMMON_SRC} ${COMMON_DATASTRUCTURES_SRC} ${COMMON_EXCEPTIONS_SRC} ${MATH_SRC} )
SET( ${LIB_NAME}_ALL_CPP ${COMMON_SRC} ${COMMON_DATASTRUCTURES_SRC} ${COMMON_EXCEPTIONS_SRC} ${MATH_SRC} )
FILE( GLOB_RECURSE ${LIB_NAME}_REMOVE_H "*.h" )
LIST( REMOVE_ITEM ${LIB_NAME}_ALL_CPP ${${LIB_NAME}_REMOVE_H} )
IF( OW_BUILD_AS_ONE_BIG_FILE )
SET( UNITY_BUILD_FILE_NAME "${LIB_NAME}UnityBuildFile.cpp" )
GENERATE_UNITY_BUILD_FILE( ${LIB_NAME}_ALL_CPP )
ADD_LIBRARY( ${LIB_NAME} SHARED ${UNITY_BUILD_FILE_NAME} ${${LIB_NAME}_COMBINER_SRC} )
ENDIF( OW_BUILD_AS_ONE_BIG_FILE )
IF( NOT OW_BUILD_AS_ONE_BIG_FILE )
ADD_LIBRARY( ${LIB_NAME} SHARED ${${LIB_NAME}_COMBINER_SRC} )
ENDIF( NOT OW_BUILD_AS_ONE_BIG_FILE )
TARGET_LINK_LIBRARIES( ${LIB_NAME} ${Boost_LIBRARIES} ${CMAKE_DL_LIBS} ${OPENSCENEGRAPH_LIBRARIES} )
IF(MSVC_IDE)
SET_TARGET_PROPERTIES( ${LIB_NAME} PROPERTIES PREFIX "../")
ENDIF(MSVC_IDE)
# Set the prefix and suffix of dynamically loadable modules to match
# CMAKEs naming of them. The quotes are necessary so the shell doesn't mess
# with these defines. Unfortunately, the Visual Studio has problems handling
# the quotes on the command line. WSharedLib::getSystemPrefix and
# getSystemSuffix hard codes the right strings for VC.
# Maybe you have to spend another 500 bucks to have your VC support quotes.
IF( NOT CMAKE_GENERATOR MATCHES "Visual Studio" )
add_definitions( '-DW_LIB_PREFIX="${CMAKE_SHARED_LIBRARY_PREFIX}"' )
add_definitions( '-DW_LIB_SUFFIX="${CMAKE_SHARED_LIBRARY_SUFFIX}"' )
ENDIF()
# Unit tests
IF( OW_COMPILE_TESTS )
CXXTEST_ADD_TESTS_FROM_LIST( "${COMMON_SRC}"
"${LIB_NAME}"
"WSegmentationFault.cpp" # can't test seg-faults ;-)
"WTransferable.cpp" # its an empty class
"WPropertyBase.cpp" # its an abstract class. Its small functionality is tested in WPropertyVariable_test.h
"WLimits.cpp" # there are only some definitions
)
# Copy fixtures if existend
IF( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/test/fixtures )
ADD_CUSTOM_TARGET( ${LIB_NAME}_CopyFixtures
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/test/fixtures ${CMAKE_BINARY_DIR}/common/fixtures/
COMMENT "Copy fixtures of ${LIB_NAME}"
)
ADD_DEPENDENCIES( ${LIB_NAME} ${LIB_NAME}_CopyFixtures )
ENDIF( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/test/fixtures )
ENDIF( OW_COMPILE_TESTS )
FILE( GLOB COMMON_DATASTRUCTURES_SRC "*.cpp" "*.h" )
# Unit tests
IF( OW_COMPILE_TESTS )
CXXTEST_ADD_TESTS_FROM_LIST( "${COMMON_DATASTRUCTURES_SRC}"
"OWcommon" # no libs for linking required
)
ENDIF( OW_COMPILE_TESTS )
FILE( GLOB COMMON_DATASTRUCTURES_SRC "*.cpp" "*.h" )
# Unit tests
IF( OW_COMPILE_TESTS )
CXXTEST_ADD_TESTS_FROM_LIST( "${COMMON_DATASTRUCTURES_SRC}"
"OWcommon" # no libs for linking required
"WColoredVertices.cpp" # is just an container, no logic to test
)
ENDIF( OW_COMPILE_TESTS )
FILE( GLOB MATH_SRC "*.cpp" "*.h" )
ADD_SUBDIRECTORY( linearAlgebra )
#remove OSSIM Helper files from list, if it isn't found
IF ( NOT OSSIM_FOUND )
LIST( REMOVE_ITEM MATH_SRC ${CMAKE_CURRENT_SOURCE_DIR}/WOSSIMHelper.h )
LIST( REMOVE_ITEM MATH_SRC ${CMAKE_CURRENT_SOURCE_DIR}/WOSSIMHelper.cpp )
ENDIF( NOT OSSIM_FOUND )
# Unit tests
IF( OW_COMPILE_TESTS )
CXXTEST_ADD_TESTS_FROM_LIST( "${MATH_SRC}"
"OWcommon"
)
ENDIF( OW_COMPILE_TESTS )
......@@ -97,7 +97,6 @@ bool OWCOMMON_EXPORT linearIndependent( const WVector3d& u, const WVector3d& v )
* \param S Output of the entries in the diagonal matrix
* \param V Output Matrix
*
* \note This function needs the OSSIM library.
*/
void OWCOMMON_EXPORT computeSVD( const WMatrix_2& A, WMatrix_2& U, WMatrix_2& V, WVector_2& S );
......
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#ifdef OW_USE_OSSIM
#include <ossim/matrix/newmat.h>
#include <ossim/matrix/newmatap.h>
#include <boost/shared_ptr.hpp>
#include "WOSSIMHelper.h"
boost::shared_ptr< NEWMAT::Matrix > WOSSIMHelper::OWMatrixToOSSIMMatrix( const WMatrix<double> &input )
{
boost::shared_ptr< NEWMAT::Matrix > result( new NEWMAT::Matrix( input.getNbRows(), input.getNbCols() ) );
for ( size_t row = 0; row < input.getNbRows(); row++ )
{
for ( size_t col = 0; col < input.getNbCols(); col++ )
{
( *result )( static_cast<int>( row+1 ), static_cast<int>( col+1 ) ) = input( row, col );
}
}
return result;
}
WMatrix<double> WOSSIMHelper::OSSIMMatrixToOWMatrix( const NEWMAT::Matrix& input )
{
WMatrix<double> result( static_cast<size_t>( input.Nrows() ), static_cast<size_t>( input.Ncols() ) );
for ( size_t row = 0; row < result.getNbRows(); row++ )
{
for ( size_t col = 0; col < result.getNbCols(); col++ )
{
result( row, col ) = input( static_cast<int>( row+1 ), static_cast<int>( col+1 ) );
}
}
return result;
}
WMatrix<double> WOSSIMHelper::OSSIMDiagonalMatrixToOWMatrix( const NEWMAT::DiagonalMatrix& input )
{
WMatrix<double> result( static_cast<size_t>( input.Nrows() ), static_cast<size_t>( input.Ncols() ) );
for ( size_t i = 0; i < result.getNbRows(); i++ )
{
result( i, i ) = input( static_cast<int>( i+1 ) );
}
return result;
}
WValue<double> WOSSIMHelper::OSSIMDiagonalMatrixToOWVector( const NEWMAT::DiagonalMatrix& input )
{
WValue<double> result( static_cast<size_t>( input.Nrows() ) );
for ( size_t i = 0; i < result.size(); i++ )
{
result[ i ] = input( static_cast<int>( i+1 ) );
}
return result;
}
// gsl_vector* OSSIMHelper::OWVectorToOSSIMVector( const WValue<double> &input )
// {
// }
//
// WValue<double> OSSIMHelper::OSSIMVectorToOWVector( const gsl_vector* input )
// {
// }
void WOSSIMHelper::computeSVD( const WMatrix< double >& A,
WMatrix< double >& U,
WMatrix< double >& V,
WValue< double >& S )
{
// create matrices in OSSIM format
boost::shared_ptr< NEWMAT::Matrix > AA( OWMatrixToOSSIMMatrix( A ) );
NEWMAT::DiagonalMatrix SS( static_cast<int>( S.size() ) );
NEWMAT::Matrix UU( static_cast<int>( U.getNbRows() ), static_cast<int>( U.getNbCols() ) );
NEWMAT::Matrix VV( static_cast<int>( V.getNbRows() ), static_cast<int>( V.getNbCols() ) );
// do SVD
NEWMAT::SVD( *AA, SS, UU, VV );
// convert Matrices to OW format
S = OSSIMDiagonalMatrixToOWVector( SS );
U = OSSIMMatrixToOWMatrix( UU );
V = OSSIMMatrixToOWMatrix( VV );
}
// WMatrix<double> WOSSIMHelper::pseudoInverse( const WMatrix<double>& input )
// {
// // calc pseudo inverse
// WMatrix< double > U( input.getNbRows(), input.getNbCols() );
// WMatrix< double > V( input.getNbCols(), input.getNbCols() );
// WValue< double > Svec( input.getNbCols() );
// WOSSIMHelper::computeSVD( input, U, V, Svec );
//
// // create diagonal matrix S
// WMatrix< double > S( input.getNbCols(), input.getNbCols() );
//
// for ( size_t i = 0; i < Svec.size() && i < S.getNbRows() && i < S.getNbCols(); i++ )
// S( i, i ) = ( Svec[ i ] == 0.0 ) ? 0.0 : 1.0 / Svec[ i ];
//
// return WMatrix< double >( V*S*U.transposed() );
// }
#endif
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#ifndef WOSSIMHELPER_H
#define WOSSIMHELPER_H
#ifdef OW_USE_OSSIM
#include <algorithm>
#include <iostream>
#include <vector>
#include <matrix/newmat.h>
#include <boost/shared_ptr.hpp>
#include "WMatrix.h"
#include "WValue.h"
/**
* Class with functions to use the GNU scientific library
*/
class WOSSIMHelper
{
public:
static boost::shared_ptr< NEWMAT::Matrix > OWMatrixToOSSIMMatrix( const WMatrix< double > &input );
static WMatrix< double > OSSIMMatrixToOWMatrix( const NEWMAT::Matrix& input );
static WMatrix< double > OSSIMDiagonalMatrixToOWMatrix( const NEWMAT::DiagonalMatrix& input );
static WValue< double > OSSIMDiagonalMatrixToOWVector( const NEWMAT::DiagonalMatrix& input );
// static gsl_vector* OWVectorToOSSIMVector( const WValue<double> &input );
// static WValue<double> OSSIMVectorToOWVector( const gsl_vector* input );
// computes the SVD of the Matrix A
static void computeSVD( const WMatrix< double >& A,
WMatrix< double >& U,
WMatrix< double >& V,
WValue< double >& S );
// computes the pseudo inverse of the Matrix A
// static WMatrix<double> pseudoInverse( const WMatrix<double>& input );
};
#endif // OW_USE_OSSIM
#endif // WOSSIMHELPER_H
FILE( GLOB LINALG_SRC "*.cpp" "*.h" )
# Unit tests
IF( OW_COMPILE_TESTS )
CXXTEST_ADD_TESTS_FROM_LIST( "${LINALG_SRC}"
"OWcommon"
"WLinearAlgebra" # only header
"WPosition" # is a WMatrixFixed. Gets tested there
"WVectorFixed" # is a WMatrixFixed. Gets tested there
)
ENDIF( OW_COMPILE_TESTS )
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#ifndef WOSSIMHELPER_TEST_H
#define WOSSIMHELPER_TEST_H
#include <cxxtest/TestSuite.h>
#include "../WOSSIMHelper.h"
/**
* Tests for WOSSIMHelper.
*/
class WOSSIMHelperTest : public CxxTest::TestSuite
{
public:
/**
* Test ComputeSVD function of WOSSIMHelper
*/
void testComputeSVD( void )
{
#ifdef OW_USE_OSSIM
const size_t nbRows = 3, nbCols = 3;
const double a = 1.2, b = 2.3, c = 3.4,
d = 4.5, e = 5.6, f = 6.7,
g = 3.4, h = 1.2, i = 7.0;
WMatrix< double > A( nbRows, nbCols );
A( 0, 0 ) = a;
A( 0, 1 ) = b;
A( 0, 2 ) = c;
A( 1, 0 ) = d;
A( 1, 1 ) = e;
A( 1, 2 ) = f;
A( 2, 0 ) = g;
A( 2, 1 ) = h;
A( 2, 2 ) = i;
WMatrix< double > U( nbRows, nbCols );
WMatrix< double > V( nbCols, nbCols );
WValue< double > S( nbCols );
WOSSIMHelper::computeSVD( A, U, V, S );
WMatrix< double > Sm( nbRows, nbCols );
Sm( 0, 0 ) = S[0];
Sm( 1, 1 ) = S[1];
Sm( 2, 2 ) = S[2];
WMatrix<double> svd( U*Sm*V.transposed() );
for ( size_t row = 0; row < svd.getNbRows(); row++ )
{
for ( size_t col = 0; col < svd.getNbCols(); col++ )
{
TS_ASSERT_DELTA( svd( row, col ), A( row, col ), 0.0001 );
}
}
#endif
}
/**
* Test pseudoInverse function of WOSSIMHelper
*/
// void testPseudoInverse( void )
// {
// const size_t nbRows = 3, nbCols = 3;
// const double a = 1.2, b = 2.3, c = 3.4,
// d = 4.5, e = 5.6, f = 6.7,
// g = 3.4, h = 1.2, i = 7.0;
// WMatrix< double > A( nbRows, nbCols );
//
// A( 0, 0 ) = a;
// A( 0, 1 ) = b;
// A( 0, 2 ) = c;
// A( 1, 0 ) = d;
// A( 1, 1 ) = e;
// A( 1, 2 ) = f;
// A( 2, 0 ) = g;
// A( 2, 1 ) = h;
// A( 2, 2 ) = i;
//
// WMatrix<double> Ainvers( WOSSIMHelper::pseudoInverse( A ) );
// WMatrix<double> I( A*Ainvers );
//
// for ( size_t row = 0; row < I.getNbRows(); row++ )
// {
// for ( size_t col = 0; col < I.getNbCols(); col++ )
// {
// if ( row == col )
// {
// TS_ASSERT_DELTA( I( row, col ), 1.0, 0.0001 );
// }
// else
// {
// TS_ASSERT_DELTA( I( row, col ), 0.0, 0.0001 );
// }
// }
// }
// }
};
#endif // WOSSIMHELPER_TEST_H
# Needed because libeep has includes of form #include <cnt/cnt.h>
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/ext/libeep )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/ext )
ADD_SUBDIRECTORY( io )
ADD_SUBDIRECTORY( datastructures )
FILE( GLOB DATAHANDLER_SRC "*.cpp" "*.h" )
FILE( GLOB DATAHANDLER_DATASTRUCTURES_SRC "datastructures/*.cpp" "datastructures/*.h" )
FILE( GLOB DATAHANDLER_EXCEPTIONS_SRC "exceptions/*.cpp" "exceptions/*.h" )
FILE( GLOB DATAHANDLER_IO_SRC "io/*.cpp" "io/*.h" ) # former WLoader
SET( LIB_NAME "${OWDatahandlerName}" )
SET( ${LIB_NAME}_COMBINER_SRC ${DATAHANDLER_SRC} ${DATAHANDLER_DATASTRUCTURES_SRC} ${DATAHANDLER_EXCEPTIONS_SRC} ${DATAHANDLER_IO_SRC} )
SET( ${LIB_NAME}_ALL_CPP ${DATAHANDLER_SRC} ${DATAHANDLER_DATASTRUCTURES_SRC} ${DATAHANDLER_EXCEPTIONS_SRC} ${DATAHANDLER_IO_SRC} )
FILE( GLOB_RECURSE ${LIB_NAME}_REMOVE_H "*.h" )
LIST( REMOVE_ITEM ${LIB_NAME}_ALL_CPP ${${LIB_NAME}_REMOVE_H} )
IF( OW_BUILD_AS_ONE_BIG_FILE )
SET( UNITY_BUILD_FILE_NAME "${LIB_NAME}UnityBuildFile.cpp" )
GENERATE_UNITY_BUILD_FILE( ${LIB_NAME}_ALL_CPP )
ADD_LIBRARY( ${LIB_NAME} SHARED ${UNITY_BUILD_FILE_NAME} ${${LIB_NAME}_COMBINER_SRC} )
ENDIF( OW_BUILD_AS_ONE_BIG_FILE )
IF( NOT OW_BUILD_AS_ONE_BIG_FILE )
ADD_LIBRARY( ${LIB_NAME} SHARED ${${LIB_NAME}_COMBINER_SRC} )
ENDIF( NOT OW_BUILD_AS_ONE_BIG_FILE )
IF( ITK_FOUND AND OW_USE_ITK )
TARGET_LINK_LIBRARIES( ${LIB_NAME} ${OWCommonName} ${Boost_LIBRARIES} OWext_niftiio OWext_biosig OWext_eep ${OPENSCENEGRAPH_LIBRARIES} ${ITK_LIBRARIES} )
ELSE()
TARGET_LINK_LIBRARIES( ${LIB_NAME} ${OWCommonName} ${Boost_LIBRARIES} OWext_niftiio OWext_biosig OWext_eep ${OPENSCENEGRAPH_LIBRARIES} )
ENDIF()
IF(MSVC_IDE)
SET_TARGET_PROPERTIES( ${LIB_NAME} PROPERTIES PREFIX "../")
ENDIF(MSVC_IDE)
# Unit tests
IF( OW_COMPILE_TESTS )
# in case of not installed ITK the unit test won't compile, so we remove it
IF( NOT ITK_FOUND OR NOT OW_USE_ITK )
LIST( REMOVE_ITEM DATAHANDLER_SRC "${CMAKE_CURRENT_SOURCE_DIR}/WITKImageConversion.cpp" )
ENDIF()
CXXTEST_ADD_TESTS_FROM_LIST( "${DATAHANDLER_SRC}" "${LIB_NAME}"
"WDataTexture3D.cpp"
"WDataHandlerEnums.cpp" )
# Copy fixtures if existend
IF( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/test/fixtures )
ADD_CUSTOM_TARGET( ${LIB_NAME}_CopyFixtures
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/test/fixtures ${CMAKE_BINARY_DIR}/dataHandler/fixtures/
COMMENT "Copy fixtures of ${LIB_NAME}"
)
ADD_DEPENDENCIES( ${LIB_NAME} ${LIB_NAME}_CopyFixtures )
ENDIF( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/test/fixtures )
IF( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/io/test/fixtures )
ADD_CUSTOM_TARGET( ${LIB_NAME}IO_CopyFixtures
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/io/test/fixtures ${CMAKE_BINARY_DIR}/dataHandler/io/fixtures/
COMMENT "Copy fixtures of ${LIB_NAME} IO"
)
ADD_DEPENDENCIES( ${LIB_NAME} ${LIB_NAME}IO_CopyFixtures )
ENDIF( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/io/test/fixtures )
ENDIF( OW_COMPILE_TESTS )
FILE( GLOB DATAHANDLER_DATASTRUCTURES_SRC "*.cpp" "*.h" )
# Unit tests
IF( OW_COMPILE_TESTS )
CXXTEST_ADD_TESTS_FROM_LIST( "${DATAHANDLER_DATASTRUCTURES_SRC}"
"OWdataHandler;OWcommon" # no libs for linking required
)
ENDIF( OW_COMPILE_TESTS )
......@@ -4,16 +4,3 @@ ELSE ()
ADD_SUBDIRECTORY( biosigWin )
ENDIF()
FILE( GLOB DATAHANDLER_IO_SRC "*.cpp" "*.h" )
# Unit tests
IF( OW_COMPILE_TESTS )
CXXTEST_ADD_TESTS_FROM_LIST( "${DATAHANDLER_IO_SRC}"
"OWdataHandler;OWext_niftiio;OWext_biosig;OWext_eep"
"WWriter.cpp" # too simple to test
"WReader.cpp" # too simple to test
"WWriterLookUpTableVTK.cpp" # there is only one member function which is not trivial, but its more an integration test
"WReaderLookUpTableVTK.cpp" # there is only one member function which is not trivial, but its more an integration test
"WWriterFiberVTK.cpp" # there is only one member function which is not trivial, but its more an integration test
)
ENDIF( OW_COMPILE_TESTS )
......@@ -32,9 +32,9 @@
#include "WReaderEEG.h"
#ifdef _MSC_VER
#include "biosigWin/biosig.h"
#include "../../ext/biosigWin/biosig.h"
#else
#include "biosig/biosig.h"
#include "../../ext/biosig/biosig.h"
#endif
#include "../WExportDataHandler.h"
......
# Needed because libeep has includes of form #include <cnt/cnt.h>
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/ext/libeep )
ADD_SUBDIRECTORY( libeep )
ADD_SUBDIRECTORY( nifti )
\ No newline at end of file
ADD_SUBDIRECTORY( nifti )
IF( NOT CMAKE_GENERATOR MATCHES "Visual Studio" )
ADD_SUBDIRECTORY( biosig )
ELSE ()
ADD_SUBDIRECTORY( biosigWin )
ENDIF()
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