CMakeLists.txt 2.35 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
cmake_minimum_required( VERSION 2.8 )

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

vista_use_package( ITABase REQUIRED FIND_DEPENDENCIES )
vista_use_package( ITAConvolution REQUIRED FIND_DEPENDENCIES )
vista_use_package( ITADataSources REQUIRED FIND_DEPENDENCIES )

if( NOT ITA_CORE_LIBS_BUILD_STATIC )
	add_definitions( -DITA_BASE_STATIC -DITA_DATASOURCES_STATIC -DITA_CONVOLUTION_STATIC )
endif( )


add_executable( NUPFSegTest "NUPFSegTest.cpp" )
target_link_libraries( NUPFSegTest ${VISTA_USE_PACKAGE_LIBRARIES} )

vista_configure_app( NUPFSegTest )
vista_install( NUPFSegTest )
vista_create_default_info_file( NUPFSegTest )

set_property( TARGET NUPFSegTest PROPERTY FOLDER "ITACoreLibs/Tests/ITAConvolution/NUP" )

add_executable( NUPTest "NUPTest.cpp" )
target_link_libraries( NUPTest ${VISTA_USE_PACKAGE_LIBRARIES} )

vista_configure_app( NUPTest )
vista_install( NUPTest )
vista_create_default_info_file( NUPTest )

set_property( TARGET NUPTest PROPERTY FOLDER "ITACoreLibs/Tests/ITAConvolution/NUP" )

if( FALSE )

	# Deactivated, because NUP with data source is not available.

	add_executable( ITANUPCFileTest "ITANUPCFileTest.cpp" "ITANUPCHelpers.cpp" "ITANUPCHelpers.h" )
	target_link_libraries( ITANUPCFileTest ${VISTA_USE_PACKAGE_LIBRARIES} )

	vista_configure_app( ITANUPCFileTest )
	vista_install( ITANUPCFileTest )
	vista_create_default_info_file( ITANUPCFileTest )

	set_property( TARGET ITANUPCFileTest PROPERTY FOLDER "ITACoreLibs/Tests/ITAConvolution/NUP" )

endif( )
	
if( ITA_CONVOLUTION_NUPCONV_WITH_PERFORMANCE_LOGGER )


	add_executable( NUPCPPTest "NUPCPPTest.cpp" )
	target_link_libraries( NUPCPPTest ${VISTA_USE_PACKAGE_LIBRARIES} )

	vista_configure_app( NUPCPPTest )
	vista_install( NUPCPPTest )
	vista_create_default_info_file( NUPCPPTest )

	set_property( TARGET NUPCPPTest PROPERTY FOLDER "ITACoreLibs/Tests/ITAConvolution/NUP" )
	
	add_executable( NUPConvPerformanceProvileView "NUPConvPerformanceProvileView.cpp" )
	target_link_libraries( NUPConvPerformanceProvileView ${VISTA_USE_PACKAGE_LIBRARIES} )

	vista_configure_app( NUPConvPerformanceProvileView )
	vista_install( NUPConvPerformanceProvileView )
	vista_create_default_info_file( NUPConvPerformanceProvileView )

	set_property( TARGET NUPConvPerformanceProvileView PROPERTY FOLDER "ITACoreLibs/Tests/ITAConvolution/NUP" )
	
endif( )