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)
ITADataSources
Commits
268ace49
Commit
268ace49
authored
Oct 04, 2016
by
Jonas Stienen
Browse files
More (to much?) linking stuff for static vista & co
parent
8718c501
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
268ace49
...
...
@@ -11,6 +11,10 @@ vista_use_package( ITABase REQUIRED FIND_DEPENDENCIES )
vista_use_package
(
ASIO QUIET
)
vista_use_package
(
Portaudio QUIET
)
if
(
NOT DEFINED ITA_VISTA_BUILD_STATIC
)
set
(
ITA_VISTA_BUILD_STATIC OFF CACHE BOOL
"Build against static ViSTA libraries"
)
endif
(
NOT DEFINED ITA_VISTA_BUILD_STATIC
)
if
(
NOT DEFINED ITA_CORE_LIBS_BUILD_STATIC
)
set
(
ITA_CORE_LIBS_BUILD_STATIC OFF CACHE BOOL
"Build all ITA core libs in static mode"
)
endif
(
NOT DEFINED ITA_CORE_LIBS_BUILD_STATIC
)
...
...
@@ -86,6 +90,10 @@ endif( VPORTAUDIO_FOUND AND ITA_DATA_SOURCE_WITH_INTEGRATED_PORTAUDIO )
# compiler settings
if
(
ITA_VISTA_BUILD_STATIC
)
add_definitions
(
-DVISTABASE_STATIC -DVISTAMATH_STATIC -DVISTAASPECTS_STATIC -DVISTATOOLS_STATIC -DVISTAINTERPROCCOMM_STATIC
)
endif
(
ITA_VISTA_BUILD_STATIC
)
if
(
NOT ITA_CORE_LIBS_BUILD_STATIC
)
add_definitions
(
-DITA_DATA_SOURCES_EXPORT
)
else
(
NOT ITA_CORE_LIBS_BUILD_STATIC
)
...
...
@@ -97,6 +105,7 @@ else( NOT ITA_CORE_LIBS_BUILD_STATIC )
endif
(
BUILD_SHARED_LIBS
)
endif
(
NOT ITA_CORE_LIBS_BUILD_STATIC
)
if
(
NOT WIN32
)
add_definitions
(
-std=c++11
)
endif
(
NOT WIN32
)
...
...
tests/CMakeLists.txt
View file @
268ace49
...
...
@@ -18,6 +18,8 @@ if( ITA_CORE_LIBS_BUILD_STATIC AND DEFINED ITA_CORE_LIBS_BUILD_STATIC )
add_definitions
(
-DITA_BASE_STATIC -DITA_DATA_SOURCES_STATIC
)
endif
(
ITA_CORE_LIBS_BUILD_STATIC AND DEFINED ITA_CORE_LIBS_BUILD_STATIC
)
# todo fix with if( vista_staic )!
add_definitions
(
-DVISTABASE_STATIC -DVISTAMATH_STATIC -DVISTAASPECTS_STATIC -DVISTATOOLS_STATIC -DVISTAINTERPROCCOMM_STATIC
)
add_executable
(
BufferDataSourceTest BufferDataSourceTest.cpp
)
target_link_libraries
(
BufferDataSourceTest
${
VISTA_USE_PACKAGE_LIBRARIES
}
)
...
...
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