Skip to content
GitLab
Menu
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
0c690248
Commit
0c690248
authored
Nov 28, 2017
by
Dipl.-Ing. Jonas Stienen
Browse files
Fixing problems with static linking
parent
5550e942
Changes
5
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
0c690248
...
...
@@ -135,7 +135,11 @@ endif( )
if
(
BUILD_SHARED_LIBS
)
add_definitions
(
-DITA_DATA_SOURCES_EXPORT
)
else
(
)
add_definitions
(
-DITA_BASE_STATIC -DITA_DATA_SOURCES_STATIC
)
add_definitions
(
-DITA_DATA_SOURCES_STATIC
)
endif
(
)
if
(
ITA_CORE_LIBS_BUILD_STATIC
)
add_definitions
(
-DITA_BASE_STATIC
)
endif
(
)
...
...
src/ITAPortaudioInterface.cpp
View file @
0c690248
...
...
@@ -69,7 +69,8 @@ ITAPortaudioInterface::ITA_PA_ERRORCODE ITAPortaudioInterface::Initialize( int i
if
(
m_iError
!=
ITA_PA_NO_ERROR
)
return
m_iError
;
if
(
iDriverID
<
0
||
iDriverID
>=
Pa_GetDeviceCount
()
)
{
if
(
iDriverID
<
0
||
iDriverID
>=
Pa_GetDeviceCount
()
)
{
Pa_Terminate
();
m_bInitialized
=
false
;
return
ITA_PA_INVALID_DEVICE
;
...
...
tests/CMakeLists.txt
View file @
0c690248
...
...
@@ -12,8 +12,12 @@ endif( )
if
(
ITA_VISTA_BUILD_STATIC
)
add_definitions
(
-DVISTABASE_STATIC -DVISTAMATH_STATIC -DVISTAASPECTS_STATIC -DVISTATOOLS_STATIC -DVISTAINTERPROCCOMM_STATIC
)
if
(
WIN32
)
list
(
APPEND VISTA_USE_PACKAGE_LIBRARIES Ws2_32 Winmm
)
endif
(
)
endif
(
)
add_executable
(
BufferDataSourceTest BufferDataSourceTest.cpp
)
target_link_libraries
(
BufferDataSourceTest
${
VISTA_USE_PACKAGE_LIBRARIES
}
)
...
...
tests/ITAAsioTests/CMakeLists.txt
View file @
0c690248
...
...
@@ -3,10 +3,20 @@ cmake_minimum_required( VERSION 2.8 )
project
(
ITADataSourcesTest
)
list
(
APPEND CMAKE_MODULE_PATH
"$ENV{VISTA_CMAKE_COMMON}"
)
include
(
VistaCommon
)
vista_use_package
(
ITADataSources REQUIRED FIND_DEPENDENCIES
)
if
(
ITA_CORE_LIBS_BUILD_STATIC
)
add_definitions
(
-DITA_BASE_STATIC -DITA_DATA_SOURCES_STATIC
)
endif
(
)
if
(
ITA_VISTA_BUILD_STATIC
)
add_definitions
(
-DVISTATOOLS_STATIC -DVISTABASE_STATIC -DVISTAMATH_STATIC -DVISTAASPECTS_STATIC -DVISTAINTERPROCCOMM_STATIC
)
if
(
WIN32
)
list
(
APPEND VISTA_USE_PACKAGE_LIBRARIES Ws2_32 Winmm
)
endif
(
)
endif
(
)
add_executable
(
ListDevices ListDevices.cpp
)
target_link_libraries
(
ListDevices
${
VISTA_USE_PACKAGE_LIBRARIES
}
)
...
...
tests/VistaNetTest/CMakeLists.txt
View file @
0c690248
...
...
@@ -7,6 +7,13 @@ include( VistaCommon )
vista_use_package
(
VistaCoreLibs REQUIRED COMPONENTS VistaInterProcComm FIND_DEPENDENCIES
)
vista_use_package
(
ITABase REQUIRED FIND_DEPENDENCIES
)
if
(
ITA_VISTA_BUILD_STATIC AND WIN32
)
list
(
APPEND VISTA_USE_PACKAGE_LIBRARIES Ws2_32 Winmm
)
endif
(
)
if
(
ITA_CORE_LIBS_BUILD_STATIC
)
add_definitions
(
-DITA_BASE_STATIC
)
endif
(
)
add_executable
(
ITAVistaNetTest VistaNetTest.cpp
)
target_link_libraries
(
ITAVistaNetTest
${
VISTA_USE_PACKAGE_LIBRARIES
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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