CMakeLists.txt 2.49 KB
Newer Older
Jonas Stienen's avatar
Jonas Stienen committed
1
2
cmake_minimum_required( VERSION 2.8 )

3
4
5
project( ITABaseTests )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
Jonas Stienen's avatar
Jonas Stienen committed
6
7


8
vista_use_package( ITABase REQUIRED FIND_DEPENDENCIES )
Jonas Stienen's avatar
Jonas Stienen committed
9

10
11
12
13
14
15
16
17
18
add_executable( ITAStringUtilsTest ITAStringUtilsTest.cpp )
target_link_libraries( ITAStringUtilsTest ${VISTA_USE_PACKAGE_LIBRARIES} )

vista_configure_app( ITAStringUtilsTest )
vista_install( ITAStringUtilsTest )
vista_create_default_info_file( ITAStringUtilsTest )

set_property( TARGET ITAStringUtilsTest PROPERTY FOLDER "ITACoreLibs/Tests/ITABase" )

Jonas Stienen's avatar
Jonas Stienen committed
19

20
21
22
23
24
25
26
27
28
29
add_executable( ConfigUtilsTest ConfigUtilsTest.cpp )
target_link_libraries( ConfigUtilsTest ${VISTA_USE_PACKAGE_LIBRARIES} )

vista_configure_app( ConfigUtilsTest )
vista_install( ConfigUtilsTest )
vista_create_default_info_file( ConfigUtilsTest )

set_property( TARGET ConfigUtilsTest PROPERTY FOLDER "ITACoreLibs/Tests/ITABase" )


30
31
add_executable( ITABaseSampleBufferTest ITABaseSampleBufferTest.cpp )
target_link_libraries( ITABaseSampleBufferTest ${VISTA_USE_PACKAGE_LIBRARIES} )
Jonas Stienen's avatar
Jonas Stienen committed
32

33
34
35
vista_configure_app( ITABaseSampleBufferTest )
vista_install( ITABaseSampleBufferTest )
vista_create_default_info_file( ITABaseSampleBufferTest )
Jonas Stienen's avatar
Jonas Stienen committed
36

37
set_property( TARGET ITABaseSampleBufferTest PROPERTY FOLDER "ITACoreLibs/Tests/ITABase" )
38
39
40
41


if( ITA_BASE_WITH_SNDFILE )

42
43
	add_executable( ITABaseSampleFrameTest ITABaseSampleFrameTest.cpp )
	target_link_libraries( ITABaseSampleFrameTest ${VISTA_USE_PACKAGE_LIBRARIES} )
44

45
46
47
	vista_configure_app( ITABaseSampleFrameTest )
	vista_install( ITABaseSampleFrameTest )
	vista_create_default_info_file( ITABaseSampleFrameTest )
48

49
	set_property( TARGET ITABaseSampleFrameTest PROPERTY FOLDER "ITACoreLibs/Tests/ITABase" )
50
	
51
endif( )
52
53


54
55
56
57
58
59
60
61
62
63
64
65
66
67
if( ITA_BASE_WITH_SAMPLERATE )

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

	vista_configure_app( ITABaseAudioSampleTest )
	vista_install( ITABaseAudioSampleTest )
	vista_create_default_info_file( ITABaseAudioSampleTest )

	set_property( TARGET ITABaseAudioSampleTest PROPERTY FOLDER "ITACoreLibs/Tests/ITABase" )
	
endif( )


68
69
70
71
72
73
74
75
76
77
add_executable( ITABaseSpectrumTests ITABaseSpectrumTests.cpp )
target_link_libraries( ITABaseSpectrumTests ${VISTA_USE_PACKAGE_LIBRARIES} )

vista_configure_app( ITABaseSpectrumTests )
vista_install( ITABaseSpectrumTests )
vista_create_default_info_file( ITABaseSpectrumTests )

set_property( TARGET ITABaseSpectrumTests PROPERTY FOLDER "ITACoreLibs/Tests/ITABase" )


78
add_subdirectory( "VistaTests" )