Commit 268ace49 authored by Jonas Stienen's avatar Jonas Stienen
Browse files

More (to much?) linking stuff for static vista & co

parent 8718c501
...@@ -11,6 +11,10 @@ vista_use_package( ITABase REQUIRED FIND_DEPENDENCIES ) ...@@ -11,6 +11,10 @@ vista_use_package( ITABase REQUIRED FIND_DEPENDENCIES )
vista_use_package( ASIO QUIET ) vista_use_package( ASIO QUIET )
vista_use_package( Portaudio 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 ) 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" ) 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 ) endif( NOT DEFINED ITA_CORE_LIBS_BUILD_STATIC )
...@@ -86,6 +90,10 @@ endif( VPORTAUDIO_FOUND AND ITA_DATA_SOURCE_WITH_INTEGRATED_PORTAUDIO ) ...@@ -86,6 +90,10 @@ endif( VPORTAUDIO_FOUND AND ITA_DATA_SOURCE_WITH_INTEGRATED_PORTAUDIO )
# compiler settings # 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 ) if( NOT ITA_CORE_LIBS_BUILD_STATIC )
add_definitions( -DITA_DATA_SOURCES_EXPORT ) add_definitions( -DITA_DATA_SOURCES_EXPORT )
else( NOT ITA_CORE_LIBS_BUILD_STATIC ) else( NOT ITA_CORE_LIBS_BUILD_STATIC )
...@@ -97,6 +105,7 @@ else( NOT ITA_CORE_LIBS_BUILD_STATIC ) ...@@ -97,6 +105,7 @@ else( NOT ITA_CORE_LIBS_BUILD_STATIC )
endif( BUILD_SHARED_LIBS ) endif( BUILD_SHARED_LIBS )
endif( NOT ITA_CORE_LIBS_BUILD_STATIC ) endif( NOT ITA_CORE_LIBS_BUILD_STATIC )
if( NOT WIN32 ) if( NOT WIN32 )
add_definitions( -std=c++11 ) add_definitions( -std=c++11 )
endif( NOT WIN32) endif( NOT WIN32)
......
...@@ -18,6 +18,8 @@ if( ITA_CORE_LIBS_BUILD_STATIC AND DEFINED ITA_CORE_LIBS_BUILD_STATIC ) ...@@ -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 ) add_definitions( -DITA_BASE_STATIC -DITA_DATA_SOURCES_STATIC )
endif( ITA_CORE_LIBS_BUILD_STATIC AND DEFINED ITA_CORE_LIBS_BUILD_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 ) add_executable( BufferDataSourceTest BufferDataSourceTest.cpp )
target_link_libraries( BufferDataSourceTest ${VISTA_USE_PACKAGE_LIBRARIES} ) target_link_libraries( BufferDataSourceTest ${VISTA_USE_PACKAGE_LIBRARIES} )
......
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