CMakeLists.txt 776 Bytes
Newer Older
1 2
cmake_minimum_required( VERSION 2.8 )

3 4 5
project( ita_whad )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
6 7 8

vista_use_package( ITADataSources REQUIRED FIND_DEPENDENCIES )

9
if( ITA_DATA_SOURCES_WITH_INTEGRATED_ASIO )
10
	add_definitions( "-DITA_WHAD_WITH_ASIO" )
11
endif( )
12

13
if( ITA_DATA_SOURCES_WITH_INTEGRATED_PORTAUDIO )
14
	add_definitions( "-DITA_WHAD_WITH_PORTAUDIO" )
15
endif( )
16 17 18 19 20 21 22 23

add_executable( ita_whad main.cpp )
target_link_libraries( ita_whad ${VISTA_USE_PACKAGE_LIBRARIES} )

vista_configure_app( ita_whad )
vista_install( ita_whad )
vista_create_default_info_file( ita_whad )

24
set_property( TARGET ita_whad PROPERTY FOLDER "ITACoreLibs/Apps/ITADataSources" )
25 26 27 28

if( ITA_CORE_LIBS_INSTALL_WITH_DLLS )
	vista_install_all_dlls( bin )
endif( )