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

3 4 5
project( ITASamplerTest )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
Jonas Stienen's avatar
Jonas Stienen committed
6 7 8 9 10 11 12


vista_use_package( ITABase REQUIRED FIND_DEPENDENCIES )
vista_use_package( ITASampler REQUIRED FIND_DEPENDENCIES )
vista_use_package( ITADataSources REQUIRED )
vista_use_package( OpenDAFF QUIET )

13 14

add_definitions( -DIEEE754_64FLOAT=1 )
15
if( ITA_CORE_LIBS_BUILD_STATIC )
16
	add_definitions( -DITA_BASE_STATIC -DITA_SAMPLER_STATIC -DITA_DATA_SOURCES_STATIC )
17
endif( )
Jonas Stienen's avatar
Jonas Stienen committed
18 19


Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
20 21 22
if( VASIO_FOUND )
	add_executable( DrumsOnKeyboard DrumsOnKeyboard.cpp )
	target_link_libraries( DrumsOnKeyboard ${VISTA_USE_PACKAGE_LIBRARIES} )
Jonas Stienen's avatar
Jonas Stienen committed
23

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
24 25 26
	vista_configure_app( DrumsOnKeyboard )
	vista_install( DrumsOnKeyboard )
	vista_create_default_info_file( DrumsOnKeyboard )
Jonas Stienen's avatar
Jonas Stienen committed
27

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
28 29
	set_property( TARGET DrumsOnKeyboard PROPERTY FOLDER "ITACoreLibs/Tests/ITASampler" )
endif( )
Jonas Stienen's avatar
Jonas Stienen committed
30

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
31
if( VOPENDAFF_FOUND AND VASIO_FOUND )
Jonas Stienen's avatar
Jonas Stienen committed
32 33 34 35 36 37 38
	add_executable( RainyDay RainyDay.cpp )
	target_link_libraries( RainyDay ${VISTA_USE_PACKAGE_LIBRARIES} )

	vista_configure_app( RainyDay )
	vista_install( RainyDay )
	vista_create_default_info_file( RainyDay )

39
	set_property( TARGET RainyDay PROPERTY FOLDER "ITACoreLibs/Tests/ITASampler" )
40
endif( )
Jonas Stienen's avatar
Jonas Stienen committed
41 42 43 44 45 46 47 48

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

vista_configure_app( Tests )
vista_install( Tests )
vista_create_default_info_file( Tests )

49
set_property( TARGET Tests PROPERTY FOLDER "ITACoreLibs/Tests/ITASampler" )