CMakeLists.txt 1.52 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
cmake_minimum_required( VERSION 2.8 )

if( NOT ITASampler_COMMON_BUILD )

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

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

16
17
18
19
20

add_definitions( -DIEEE754_64FLOAT=1 )
if( ITA_CORE_LIBS_BUILD_STATIC AND DEFINED ITA_CORE_LIBS_BUILD_STATIC )
	add_definitions( -DITA_BASE_STATIC -DITA_SAMPLER_STATIC )
endif( ITA_CORE_LIBS_BUILD_STATIC AND DEFINED ITA_CORE_LIBS_BUILD_STATIC  )
Jonas Stienen's avatar
Jonas Stienen committed
21
22
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


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 )

set_property( TARGET DrumsOnKeyboard PROPERTY FOLDER "ITATests/ITASampler" )

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 )

	set_property( TARGET RainyDay PROPERTY FOLDER "ITATests/ITASampler" )
endif( VOPENDAFF_FOUND )

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 )

set_property( TARGET Tests PROPERTY FOLDER "ITATests/ITASampler" )