Commit 2f7a00ab authored by js908001's avatar js908001

Switch to exlude tests if sndfile is missing

parent 95d5270d
...@@ -71,7 +71,6 @@ set( ITABaseHeader ...@@ -71,7 +71,6 @@ set( ITABaseHeader
"include/ITASimpleConvolution.h" "include/ITASimpleConvolution.h"
"include/ITAStopWatch.h" "include/ITAStopWatch.h"
"include/ITAStringUtils.h" "include/ITAStringUtils.h"
"include/ITATimer.h"
"include/ITATimeSeriesAnalyzer.h" "include/ITATimeSeriesAnalyzer.h"
"include/ITATypes.h" "include/ITATypes.h"
"include/ITAUncopyable.h" "include/ITAUncopyable.h"
...@@ -100,7 +99,6 @@ set( ITABaseSources ...@@ -100,7 +99,6 @@ set( ITABaseSources
"src/ITASampleTypeConversion.cpp" "src/ITASampleTypeConversion.cpp"
"src/ITASimpleConvolution.cpp" "src/ITASimpleConvolution.cpp"
"src/ITAStopWatch.cpp" "src/ITAStopWatch.cpp"
"src/ITATimer.cpp"
"src/ITAWinPCClock.cpp" "src/ITAWinPCClock.cpp"
"src/spline.cpp" "src/spline.cpp"
) )
...@@ -108,8 +106,8 @@ set( ITABaseSources ...@@ -108,8 +106,8 @@ set( ITABaseSources
# Win32 implementations # Win32 implementations
if( WIN32 ) if( WIN32 )
list( APPEND ${ITABaseHeader} "include/ITAHPT.h" "include/ITAMutex.h" ) list( APPEND ${ITABaseHeader} "include/ITAHPT.h" "include/ITAMutex.h" "include/ITATimer.h" )
list( APPEND ${ITABaseHeader} "src/ITAHPT.cpp" "include/ITAMutex.h" ) list( APPEND ${ITABaseHeader} "src/ITAHPT.cpp" "src/ITAMutex.cpp" "src/ITATimer.cpp" )
endif( WIN32 ) endif( WIN32 )
if( VSNDFILE_FOUND AND ITA_BASE_WITH_SNDFILE ) if( VSNDFILE_FOUND AND ITA_BASE_WITH_SNDFILE )
......
...@@ -10,13 +10,17 @@ endif() ...@@ -10,13 +10,17 @@ endif()
vista_use_package( ITABase REQUIRED ) vista_use_package( ITABase REQUIRED )
add_definitions( -DITA_BASE_DLL ) if( WIN32 )
add_definitions( -DITA_BASE_DLL )
endif( WIN32 )
add_executable( SampleBufferTest SampleBufferTest.cpp ) if( VFOUND_SNDFILE AND ITA_BASE_WITH_SNDFILE )
target_link_libraries( SampleBufferTest ${VISTA_USE_PACKAGE_LIBRARIES} ) add_executable( SampleBufferTest SampleBufferTest.cpp )
target_link_libraries( SampleBufferTest ${VISTA_USE_PACKAGE_LIBRARIES} )
vista_configure_app( SampleBufferTest ) vista_configure_app( SampleBufferTest )
vista_install( SampleBufferTest ) vista_install( SampleBufferTest )
vista_create_default_info_file( SampleBufferTest ) vista_create_default_info_file( SampleBufferTest )
set_property( TARGET SampleBufferTest PROPERTY FOLDER "ITATests/ITABase" ) set_property( TARGET SampleBufferTest PROPERTY FOLDER "ITATests/ITABase" )
endif( VFOUND_SNDFILE AND ITA_BASE_WITH_SNDFILE )
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