CMakeLists.txt 3.57 KB
Newer Older
1
cmake_minimum_required( VERSION 2.9 )
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
2
cmake_minimum_required( VERSION 2.9 )
3

4
5
6
project( ITANetAudioTests )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
7
8
9
10

vista_use_package( VistaCoreLibs REQUIRED COMPONENTS VistaInterProcComm FIND_DEPENDENCIES )
vista_use_package( ITADataSources REQUIRED FIND_DEPENDENCIES )

Anne Heimes's avatar
Anne Heimes committed
11
add_definitions(-DIEEE754_64FLOAT)
12

Anne's avatar
Anne committed
13
14
15
16
17
18
19
20
21
22
add_executable( ITANetAudioStreamingPortaudioClientTest ITANetAudioStreamingPortaudioClientTest.cpp )
target_link_libraries( ITANetAudioStreamingPortaudioClientTest ${VISTA_USE_PACKAGE_LIBRARIES} )

vista_configure_app( ITANetAudioStreamingPortaudioClientTest )
vista_install( ITANetAudioStreamingPortaudioClientTest )
vista_create_default_info_file( ITANetAudioStreamingPortaudioClientTest )

set_property( TARGET ITANetAudioStreamingPortaudioClientTest PROPERTY FOLDER "ITACoreLibs/Tests/ITADataSources/NetAudio" )


23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
add_executable( ITANABufferServerTest ITANABufferServerTest.cpp )
target_link_libraries( ITANABufferServerTest ${VISTA_USE_PACKAGE_LIBRARIES} )

vista_configure_app( ITANABufferServerTest )
vista_install( ITANABufferServerTest )
vista_create_default_info_file( ITANABufferServerTest )

set_property( TARGET ITANABufferServerTest PROPERTY FOLDER "ITACoreLibs/Tests/ITADataSources/NetAudio" )


add_executable( ITANAPlayerTest ITANAPlayerTest.cpp )
target_link_libraries( ITANAPlayerTest ${VISTA_USE_PACKAGE_LIBRARIES} )

vista_configure_app( ITANAPlayerTest )
vista_install( ITANAPlayerTest )
vista_create_default_info_file( ITANAPlayerTest )

set_property( TARGET ITANAPlayerTest PROPERTY FOLDER "ITACoreLibs/Tests/ITADataSources/NetAudio" )
41
42


43
44
add_executable( ITANetAudioStreamingServerTest ITANetAudioStreamingServerTest.cpp )
target_link_libraries( ITANetAudioStreamingServerTest ${VISTA_USE_PACKAGE_LIBRARIES} )
45

46
47
48
vista_configure_app( ITANetAudioStreamingServerTest )
vista_install( ITANetAudioStreamingServerTest )
vista_create_default_info_file( ITANetAudioStreamingServerTest )
49

50
set_property( TARGET ITANetAudioStreamingServerTest PROPERTY FOLDER "ITACoreLibs/Tests/ITADataSources/NetAudio" )
51
52


Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
53
54
if( ITA_DATA_SOURCES_WITH_INTEGRATED_ASIO )

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
55
56
	add_executable( ITANetAudioStreamingClientTest ITANetAudioStreamingClientTest.cpp )
	target_link_libraries( ITANetAudioStreamingClientTest ${VISTA_USE_PACKAGE_LIBRARIES} )
57

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
58
59
60
	vista_configure_app( ITANetAudioStreamingClientTest )
	vista_install( ITANetAudioStreamingClientTest )
	vista_create_default_info_file( ITANetAudioStreamingClientTest )
61

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
62
	set_property( TARGET ITANetAudioStreamingClientTest PROPERTY FOLDER "ITACoreLibs/Tests/ITADataSources/NetAudio" )
Anne's avatar
Anne committed
63

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
64
65
	add_executable( ITANetAudioTest ITANetAudioTest.cpp )
	target_link_libraries( ITANetAudioTest ${VISTA_USE_PACKAGE_LIBRARIES} )
Anne's avatar
Anne committed
66

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
67
68
69
70
	vista_configure_app( ITANetAudioTest )
	vista_install( ITANetAudioTest )
	vista_create_default_info_file( ITANetAudioTest )

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
71
72
	set_property( TARGET ITANetAudioTest PROPERTY FOLDER "ITACoreLibs/Tests/ITADataSources/NetAudio" )

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
73
endif( )
Anne's avatar
Anne committed
74

Anne Heimes's avatar
Anne Heimes committed
75
76
vista_install_all_dlls( bin )

Anne's avatar
Anne committed
77
78

if( NOT DEFINED ITA_NETAUDIO_SERVER_WITH_TESTS )
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
79
    set( ITA_NETAUDIO_SERVER_WITH_TESTS "localhost 12480 44100 32 2" CACHE STRING "Arguments for calling NetAudio server")
Anne's avatar
Anne committed
80
81
endif( )
if( NOT DEFINED ITA_NETAUDIO_CLIENT_WITH_TESTS )
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
82
    set( ITA_NETAUDIO_CLIENT_WITH_TESTS "localhost 12480 44100 32 2 3200" CACHE STRING "default value" )
Anne's avatar
Anne committed
83
84
endif( )

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
85
86
87
vista_set_target_msvc_arguments( ITANetAudioStreamingPortaudioClientTest ${ITA_NETAUDIO_CLIENT_WITH_TESTS} )
vista_set_target_msvc_arguments( ITANetAudioStreamingClientTest ${ITA_NETAUDIO_CLIENT_WITH_TESTS} )
vista_set_target_msvc_arguments( ITANetAudioStreamingServerTest ${ITA_NETAUDIO_SERVER_WITH_TESTS} )