CMakeLists.txt 4.26 KB
Newer Older
Jonas Stienen's avatar
Jonas Stienen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cmake_minimum_required( VERSION 2.8 )

if( NOT ITADATASOURCES_COMMON_BUILD )

	project( ITADataSourcesTest )
	list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
	include( VistaCommon )
	
endif()

vista_use_package( ITADataSources REQUIRED FIND_DEPENDENCIES )

if( VASIO_FOUND AND ITA_DATA_SOURCE_WITH_INTEGRATED_ASIO )
	add_subdirectory( ITAAsioTests )
endif( VASIO_FOUND AND ITA_DATA_SOURCE_WITH_INTEGRATED_ASIO )

17
18
19
if( ITA_CORE_LIBS_BUILD_STATIC AND DEFINED ITA_CORE_LIBS_BUILD_STATIC )
	add_definitions( -DITA_BASE_STATIC -DITA_DATA_SOURCES_STATIC )
endif( ITA_CORE_LIBS_BUILD_STATIC AND DEFINED ITA_CORE_LIBS_BUILD_STATIC  )
Jonas Stienen's avatar
Jonas Stienen committed
20

21
22
# todo fix with if( vista_staic )!
add_definitions( -DVISTABASE_STATIC -DVISTAMATH_STATIC -DVISTAASPECTS_STATIC -DVISTATOOLS_STATIC -DVISTAINTERPROCCOMM_STATIC )
Jonas Stienen's avatar
Jonas Stienen committed
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125

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

vista_configure_app( BufferDataSourceTest )
vista_install( BufferDataSourceTest )
vista_create_default_info_file( BufferDataSourceTest )

set_property( TARGET BufferDataSourceTest PROPERTY FOLDER "ITATests/ITADataSources" )


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

vista_configure_app( FileDataSourceTest )
vista_install( FileDataSourceTest )
vista_create_default_info_file( FileDataSourceTest )

set_property( TARGET FileDataSourceTest PROPERTY FOLDER "ITATests/ITADataSources" )


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

vista_configure_app( DatasourceUtilsTest )
vista_install( DatasourceUtilsTest )
vista_create_default_info_file( DatasourceUtilsTest )

set_property( TARGET DatasourceUtilsTest PROPERTY FOLDER "ITATests/ITADataSources" )


# add_executable( FilterTest FilterTest.cpp )
# target_link_libraries( FilterTest ${VISTA_USE_PACKAGE_LIBRARIES} )

# vista_configure_app( FilterTest )
# vista_install( FilterTest )
# vista_create_default_info_file( FilterTest )

# set_property( TARGET FilterTest PROPERTY FOLDER "ITATests/ITADataSources" )


# add_executable( Patchbay1Test Patchbay1Test.cpp )
# target_link_libraries( Patchbay1Test ${VISTA_USE_PACKAGE_LIBRARIES} )

# vista_configure_app( Patchbay1Test )
# vista_install( Patchbay1Test )
# vista_create_default_info_file( Patchbay1Test )

# set_property( TARGET Patchbay1Test PROPERTY FOLDER "ITATests/ITADataSources" )


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

vista_configure_app( PeakDetectorTest )
vista_install( PeakDetectorTest )
vista_create_default_info_file( PeakDetectorTest )

set_property( TARGET PeakDetectorTest PROPERTY FOLDER "ITATests/ITADataSources" )


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

vista_configure_app( StreamFunctionGeneratorTest )
vista_install( StreamFunctionGeneratorTest )
vista_create_default_info_file( StreamFunctionGeneratorTest )

set_property( TARGET StreamFunctionGeneratorTest PROPERTY FOLDER "ITATests/ITADataSources" )


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

vista_configure_app( StreamPatchbayTest )
vista_install( StreamPatchbayTest )
vista_create_default_info_file( StreamPatchbayTest )

set_property( TARGET StreamPatchbayTest PROPERTY FOLDER "ITATests/ITADataSources" )


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

vista_configure_app( StreamProbeTest )
vista_install( StreamProbeTest )
vista_create_default_info_file( StreamProbeTest )

set_property( TARGET StreamProbeTest PROPERTY FOLDER "ITATests/ITADataSources" )


# add_executable( YJunctionTest YJunctionTest.cpp )
# target_link_libraries( YJunctionTest ${VISTA_USE_PACKAGE_LIBRARIES} )

# vista_configure_app( YJunctionTest )
# vista_install( YJunctionTest )
# vista_create_default_info_file( YJunctionTest )

# set_property( TARGET YJunctionTest PROPERTY FOLDER "ITATests/ITADataSources" )


# Portaudio tests
add_subdirectory( "ITAPortaudioTests" )