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 bb09c185
......@@ -12,6 +12,10 @@ vista_use_package( ITADataSources REQUIRED FIND_DEPENDENCIES )
vista_use_package( ITAConvolution REQUIRED FIND_DEPENDENCIES )
vista_use_package( OpenDAFF REQUIRED )
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 )
if( NOT DEFINED ITA_CTC_WITH_DUAL_CTC )
set( ITA_CTC_WITH_DUAL_CTC OFF CACHE BOOL "Build support for Crosstalk-Cancellation with arbitrary loudspeaker number and pose" )
endif( NOT DEFINED ITA_CTC_WITH_DUAL_CTC )
......@@ -62,8 +66,12 @@ if( ITA_CTC_NCTC_EXPORT_FILTER_TO_HARDDRIVE )
endif( ITA_CTC_NCTC_EXPORT_FILTER_TO_HARDDRIVE )
# compiler
add_definitions( -DITA_BASE_DLL -DITA_FFT_DLL -DITA_CONVOLUTION_DLL -DITA_CTC_DLL -DITA_CTC_EXPORT )
# compiler settings
if( NOT ITA_CORE_LIBS_BUILD_STATIC )
add_definitions( -DITA_CTC_EXPORT )
else( NOT ITA_CORE_LIBS_BUILD_STATIC )
add_definitions( -DITA_FFT_STATIC -DITA_BASE_STATIC -DITA_CONVOLUTION_STATIC )
endif( NOT ITA_CORE_LIBS_BUILD_STATIC )
# linker
......
......@@ -20,14 +20,14 @@
#ifndef INCLUDE_WATCHER_ITA_CTC_DEFINITIONS
#define INCLUDE_WATCHER_ITA_CTC_DEFINITIONS
#ifdef ITA_CTC_DLL
#ifdef ITA_CTC_EXPORT
#define ITA_CTC_API __declspec(dllexport)
#else
#define ITA_CTC_API __declspec(dllimport)
#endif
#if ( defined WIN32 ) && !( defined ITA_CTC_STATIC )
#ifdef ITA_CTC_EXPORT
#define ITA_CTC_API __declspec( dllexport )
#else
#define ITA_CTC_API __declspec( dllimport )
#endif
#else
#define ITA_CTC_API
#define ITA_CTC_API
#endif
#endif // INCLUDE_WATCHER_ITA_CTC_DEFINITIONS
......@@ -10,9 +10,12 @@ endif()
vista_use_package( ITABase REQUIRED FIND_DEPENDENCIES )
vista_use_package( ITACTC REQUIRED FIND_DEPENDENCIES )
vista_use_package( OpenDAFF REQUIRED FIND_DEPENDENCIES )
add_definitions( -DITA_BASE_DLL -DITA_CTC_DLL )
if( ITA_CORE_LIBS_BUILD_STATIC AND DEFINED ITA_CORE_LIBS_BUILD_STATIC )
add_definitions( -DITA_BASE_STATIC -DITA_CTC_STATIC )
endif( ITA_CORE_LIBS_BUILD_STATIC AND DEFINED ITA_CORE_LIBS_BUILD_STATIC )
if( ITA_CTC_WITH_N_CTC )
......
// $Id: ^NCTC_CTCFilterTest.cpp,v 1.1 2008-11-19 00:14:45 stienen Exp $
#include <ITANCTC.h>
#include <ITACTCUtils.h>
......
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