Switching to default dynamic lib build mode by changing base definition...

Switching to default dynamic lib build mode by changing base definition behavior. If you do not define anything, you will end up with a shared library, now.
parent 5bdf9523
......@@ -10,6 +10,10 @@ vista_use_package( ITABase REQUIRED FIND_DEPENDENCIES )
vista_use_package( ITADataSources REQUIRED FIND_DEPENDENCIES )
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 )
# includes
include_directories( "include" )
......@@ -42,8 +46,12 @@ set( ITASamplerSources
)
# compiler
add_definitions( -DITA_BASE_DLL -DITA_SAMPLER_DLL -DITA_SAMPLER_EXPORT )
# compiler settings
if( NOT ITA_CORE_LIBS_BUILD_STATIC )
add_definitions( -DITA_SAMPLER_EXPORT )
else( NOT ITA_CORE_LIBS_BUILD_STATIC )
add_definitions( -DITA_BASE_STATIC -ITA_DATA_SOURCES_STATIC -DITA_SAMPLER_STATIC )
endif( NOT ITA_CORE_LIBS_BUILD_STATIC )
# linker
......
Copyright 2015-2016 Institute of Technical Acoustics, RWTH Aachen University. Any usage and distribution is prohibited, unless explicitly granted by the authors.
\ No newline at end of file
## ITASampler
ITASampler is a C++ library for adding samples at certain times from a lookup-table on a data source.
### License
See [LICENSE](LICENSE.md) file.
......@@ -20,14 +20,14 @@
#ifndef INCLUDE_WATCHER_ITA_SAMPLER_DEFINITIONS
#define INCLUDE_WATCHER_ITA_SAMPLER_DEFINITIONS
#ifdef ITA_SAMPLER_DLL
#ifdef ITA_SAMPLER_EXPORT
#define ITA_SAMPLER_API __declspec(dllexport)
#else
#define ITA_SAMPLER_API __declspec(dllimport)
#endif
#if ( defined WIN32 ) && !( defined ITA_SAMPLER_STATIC )
#ifdef ITA_SAMPLER_EXPORT
#define ITA_SAMPLER_API __declspec( dllexport )
#else
#define ITA_SAMPLER_API __declspec( dllimport )
#endif
#else
#define ITA_SAMPLER_API
#define ITA_SAMPLER_API
#endif
#endif // INCLUDE_WATCHER_ITA_SAMPLER_DEFINITIONS
......@@ -13,7 +13,11 @@ vista_use_package( ITASampler REQUIRED FIND_DEPENDENCIES )
vista_use_package( ITADataSources REQUIRED )
vista_use_package( OpenDAFF QUIET )
add_definitions( -DITA_BASE_DLL -DITA_SAMPLER_DLL -DIEEE754_64FLOAT=1 )
add_definitions( -DIEEE754_64FLOAT=1 )
if( ITA_CORE_LIBS_BUILD_STATIC AND DEFINED ITA_CORE_LIBS_BUILD_STATIC )
add_definitions( -DITA_BASE_STATIC -DITA_SAMPLER_STATIC )
endif( ITA_CORE_LIBS_BUILD_STATIC AND DEFINED ITA_CORE_LIBS_BUILD_STATIC )
add_executable( DrumsOnKeyboard DrumsOnKeyboard.cpp )
......
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