CMakeLists.txt 1.4 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
add_executable( ITABaseSampleBufferTest ITABaseSampleBufferTest.cpp )
target_link_libraries( ITABaseSampleBufferTest ${VISTA_USE_PACKAGE_LIBRARIES} )
Jonas Stienen's avatar
Jonas Stienen committed
13

14
15
16
vista_configure_app( ITABaseSampleBufferTest )
vista_install( ITABaseSampleBufferTest )
vista_create_default_info_file( ITABaseSampleBufferTest )
Jonas Stienen's avatar
Jonas Stienen committed
17

18
set_property( TARGET ITABaseSampleBufferTest PROPERTY FOLDER "ITACoreLibs/Tests/ITABase" )
19
20
21
22


if( ITA_BASE_WITH_SNDFILE )

23
24
	add_executable( ITABaseSampleFrameTest ITABaseSampleFrameTest.cpp )
	target_link_libraries( ITABaseSampleFrameTest ${VISTA_USE_PACKAGE_LIBRARIES} )
25

26
27
28
	vista_configure_app( ITABaseSampleFrameTest )
	vista_install( ITABaseSampleFrameTest )
	vista_create_default_info_file( ITABaseSampleFrameTest )
29

30
	set_property( TARGET ITABaseSampleFrameTest PROPERTY FOLDER "ITACoreLibs/Tests/ITABase" )
31
	
32
endif( )
33
34


35
36
37
38
39
40
41
42
43
44
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" )


45
add_subdirectory( "VistaTests" )