CMakeLists.txt 2.17 KB
Newer Older
1
cmake_minimum_required (VERSION 3.20 FATAL_ERROR)
2

Pascal Palenda's avatar
Pascal Palenda committed
3
project (ITANUPConvolutionTests)
4

Pascal Palenda's avatar
Pascal Palenda committed
5
# ######################################################################################################################
6

Pascal Palenda's avatar
Pascal Palenda committed
7
8
add_executable (NUPFSegTest NUPFSegTest.cpp)
target_link_libraries (NUPFSegTest ITAConvolution::ITAConvolution)
9

Pascal Palenda's avatar
Pascal Palenda committed
10
set_property (TARGET NUPFSegTest PROPERTY FOLDER "Tests/ITAConvolution/NUP")
11
set_property (TARGET ${PROJECT_NAME} PROPERTY VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
12

Pascal Palenda's avatar
Pascal Palenda committed
13
install (TARGETS NUPFSegTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
14

Pascal Palenda's avatar
Pascal Palenda committed
15
# ######################################################################################################################
16

Pascal Palenda's avatar
Pascal Palenda committed
17
18
add_executable (NUPTest "NUPTest.cpp")
target_link_libraries (NUPTest ITAConvolution::ITAConvolution)
19

Pascal Palenda's avatar
Pascal Palenda committed
20
set_property (TARGET NUPTest PROPERTY FOLDER "Tests/ITAConvolution/NUP")
21
set_property (TARGET ${PROJECT_NAME} PROPERTY VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
22

Pascal Palenda's avatar
Pascal Palenda committed
23
install (TARGETS NUPTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
24

Pascal Palenda's avatar
Pascal Palenda committed
25
# ######################################################################################################################
26

Pascal Palenda's avatar
Pascal Palenda committed
27
if (ITA_CONVOLUTION_NUPCONV_WITH_PERFORMANCE_LOGGER)
28

Pascal Palenda's avatar
Pascal Palenda committed
29
30
	add_executable (NUPCPPTest NUPCPPTest.cpp)
	target_link_libraries (NUPCPPTest ITAConvolution::ITAConvolution)
31

Pascal Palenda's avatar
Pascal Palenda committed
32
	set_property (TARGET NUPCPPTest PROPERTY FOLDER "Tests/ITAConvolution/NUP")
33
	set_property (TARGET ${PROJECT_NAME} PROPERTY VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
34

Pascal Palenda's avatar
Pascal Palenda committed
35
	install (TARGETS NUPCPPTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
36

Pascal Palenda's avatar
Pascal Palenda committed
37
	# ##################################################################################################################
38

Pascal Palenda's avatar
Pascal Palenda committed
39
40
	add_executable (NUPConvPerformanceProvileView NUPConvPerformanceProvileView.cpp)
	target_link_libraries (NUPConvPerformanceProvileView ITAConvolution::ITAConvolution)
41

Pascal Palenda's avatar
Pascal Palenda committed
42
	set_property (TARGET NUPConvPerformanceProvileView PROPERTY FOLDER "Tests/ITAConvolution/NUP")
43
	set_property (TARGET ${PROJECT_NAME} PROPERTY VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
44

Pascal Palenda's avatar
Pascal Palenda committed
45
	install (TARGETS NUPConvPerformanceProvileView RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
46

Pascal Palenda's avatar
Pascal Palenda committed
47
endif ()