CMakeLists.txt 1.41 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 20 21 22 23 24 25 26


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

vista_configure_app( DrumsOnKeyboard )
vista_install( DrumsOnKeyboard )
vista_create_default_info_file( DrumsOnKeyboard )

27
set_property( TARGET DrumsOnKeyboard PROPERTY FOLDER "ITACoreLibs/Tests/ITASampler" )
Jonas Stienen's avatar
Jonas Stienen committed
28 29 30 31 32 33 34 35 36

if( VOPENDAFF_FOUND )
	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 )

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

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 )

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