Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITABase
Commits
2f7a00ab
Commit
2f7a00ab
authored
Aug 26, 2016
by
js908001
Browse files
Switch to exlude tests if sndfile is missing
parent
95d5270d
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
2f7a00ab
...
...
@@ -71,7 +71,6 @@ set( ITABaseHeader
"include/ITASimpleConvolution.h"
"include/ITAStopWatch.h"
"include/ITAStringUtils.h"
"include/ITATimer.h"
"include/ITATimeSeriesAnalyzer.h"
"include/ITATypes.h"
"include/ITAUncopyable.h"
...
...
@@ -100,7 +99,6 @@ set( ITABaseSources
"src/ITASampleTypeConversion.cpp"
"src/ITASimpleConvolution.cpp"
"src/ITAStopWatch.cpp"
"src/ITATimer.cpp"
"src/ITAWinPCClock.cpp"
"src/spline.cpp"
)
...
...
@@ -108,8 +106,8 @@ set( ITABaseSources
# Win32 implementations
if
(
WIN32
)
list
(
APPEND
${
ITABaseHeader
}
"include/ITAHPT.h"
"include/ITAMutex.h"
)
list
(
APPEND
${
ITABaseHeader
}
"src/ITAHPT.cpp"
"
include
/ITAMutex.
h
"
)
list
(
APPEND
${
ITABaseHeader
}
"include/ITAHPT.h"
"include/ITAMutex.h"
"include/ITATimer.h"
)
list
(
APPEND
${
ITABaseHeader
}
"src/ITAHPT.cpp"
"
src
/ITAMutex.
cpp"
"src/ITATimer.cpp
"
)
endif
(
WIN32
)
if
(
VSNDFILE_FOUND AND ITA_BASE_WITH_SNDFILE
)
...
...
tests/CMakeLists.txt
View file @
2f7a00ab
...
...
@@ -10,13 +10,17 @@ endif()
vista_use_package
(
ITABase REQUIRED
)
add_definitions
(
-DITA_BASE_DLL
)
if
(
WIN32
)
add_definitions
(
-DITA_BASE_DLL
)
endif
(
WIN32
)
add_executable
(
SampleBufferTest SampleBufferTest.cpp
)
target_link_libraries
(
SampleBufferTest
${
VISTA_USE_PACKAGE_LIBRARIES
}
)
if
(
VFOUND_SNDFILE AND ITA_BASE_WITH_SNDFILE
)
add_executable
(
SampleBufferTest SampleBufferTest.cpp
)
target_link_libraries
(
SampleBufferTest
${
VISTA_USE_PACKAGE_LIBRARIES
}
)
vista_configure_app
(
SampleBufferTest
)
vista_install
(
SampleBufferTest
)
vista_create_default_info_file
(
SampleBufferTest
)
vista_configure_app
(
SampleBufferTest
)
vista_install
(
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
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment