CMakeLists.txt 1.55 KB
Newer Older
Jonas Stienen's avatar
Jonas Stienen committed
1
2
3
4
5
6
7
8
9
10
cmake_minimum_required( VERSION 2.8 )

if( NOT ITACTC_COMMON_BUILD )

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

Jonas Stienen's avatar
Jonas Stienen committed
11

Jonas Stienen's avatar
Jonas Stienen committed
12
13
vista_use_package( ITABase REQUIRED FIND_DEPENDENCIES )
vista_use_package( ITACTC REQUIRED FIND_DEPENDENCIES )
14
vista_use_package( OpenDAFF REQUIRED FIND_DEPENDENCIES )
Jonas Stienen's avatar
Jonas Stienen committed
15
16


17
18
19
if( ITA_CORE_LIBS_BUILD_STATIC AND DEFINED ITA_CORE_LIBS_BUILD_STATIC )
	add_definitions( -DITA_BASE_STATIC -DITA_CTC_STATIC )
endif( ITA_CORE_LIBS_BUILD_STATIC AND DEFINED ITA_CORE_LIBS_BUILD_STATIC  )
Jonas Stienen's avatar
Jonas Stienen committed
20

21
if( ITA_VISTA_BUILD_STATIC AND DEFINED ITA_VISTA_BUILD_STATIC )
Jonas Stienen's avatar
Jonas Stienen committed
22
	add_definitions( -DVISTATOOLS_STATIC -DVISTABASE_STATIC -DVISTAMATH_STATIC -DVISTAASPECTS_STATIC -DVISTAINTERPROCCOMM_STATIC )
23
24
endif( ITA_VISTA_BUILD_STATIC AND DEFINED ITA_VISTA_BUILD_STATIC )

25

Jonas Stienen's avatar
Jonas Stienen committed
26
27
28
29
30
31
32
33
34
if( ITA_CTC_WITH_N_CTC )

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

	vista_configure_app( NCTC_CTCFilterTest )
	vista_install( NCTC_CTCFilterTest )
	vista_create_default_info_file( NCTC_CTCFilterTest )

35
	set_property( TARGET NCTC_CTCFilterTest PROPERTY FOLDER "ITACoreLibs/Tests/ITACTC" )
Jonas Stienen's avatar
Jonas Stienen committed
36
37
38
39
40
41
42
43
44
	

	#add_executable( NCTC_OnlineTest NCTC_OnlineTest.cpp )
	#target_link_libraries( NCTC_OnlineTest ${VISTA_USE_PACKAGE_LIBRARIES} )

	#vista_configure_app( NCTC_OnlineTest )
	#vista_install( NCTC_OnlineTest )
	#vista_create_default_info_file( NCTC_OnlineTest )

45
	#set_property( TARGET NCTC_OnlineTest PROPERTY FOLDER "ITACoreLibs/Tests/ITACTC" )
Jonas Stienen's avatar
Jonas Stienen committed
46
47
48

endif( ITA_CTC_WITH_N_CTC )