Commit b979adaa authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Update test CMakeLists

parent 908c4799
cmake_minimum_required( VERSION 2.8 )
cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
project( ITAConvolutionTests )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
project (ITAConvolutionTests)
vista_use_package( ITAConvolution REQUIRED FIND_DEPENDENCIES )
# ######################################################################################################################
if( ITA_CORE_LIBS_BUILD_STATIC )
add_definitions( -DITA_BASE_STATIC -DITA_FFT_STATIC -DITA_CONVOLUTION_STATIC )
endif( )
add_executable (ITADirectConvolutionTest ITADirectConvolutionTest.cpp)
target_link_libraries (ITADirectConvolutionTest ITAConvolution::ITAConvolution)
set_property (TARGET ITADirectConvolutionTest PROPERTY FOLDER "Tests/ITAConvolution")
add_executable( ITADirectConvolutionTest "ITADirectConvolutionTest.cpp" )
target_link_libraries( ITADirectConvolutionTest ${VISTA_USE_PACKAGE_LIBRARIES} )
install (TARGETS ITADirectConvolutionTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
vista_configure_app( ITADirectConvolutionTest )
vista_install( ITADirectConvolutionTest )
vista_create_default_info_file( ITADirectConvolutionTest )
# ######################################################################################################################
set_property( TARGET ITADirectConvolutionTest PROPERTY FOLDER "ITACoreLibs/Tests/ITAConvolution" )
add_executable (ITAUniformPartitionedConvolutionTest ITAUniformPartitionedConvolutionTest.cpp)
target_link_libraries (ITAUniformPartitionedConvolutionTest ITAConvolution::ITAConvolution)
set_property (TARGET ITAUniformPartitionedConvolutionTest PROPERTY FOLDER "Tests/ITAConvolution")
add_executable( ITAUniformPartitionedConvolutionTest "ITAUniformPartitionedConvolutionTest.cpp" )
target_link_libraries( ITAUniformPartitionedConvolutionTest ${VISTA_USE_PACKAGE_LIBRARIES} )
install (TARGETS ITAUniformPartitionedConvolutionTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
vista_configure_app( ITAUniformPartitionedConvolutionTest )
vista_install( ITAUniformPartitionedConvolutionTest )
vista_create_default_info_file( ITAUniformPartitionedConvolutionTest )
# ######################################################################################################################
set_property( TARGET ITAUniformPartitionedConvolutionTest PROPERTY FOLDER "ITACoreLibs/Tests/ITAConvolution" )
if( ITA_CONVOLUTION_WITH_NUPCONV )
add_subdirectory( "NUPConvolutionTest" )
endif( )
if (ITA_CONVOLUTION_WITH_NUPCONV)
add_subdirectory (NUPConvolutionTest)
endif ()
cmake_minimum_required( VERSION 2.8 )
cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
project( ITANUPConvolutionTests )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
project (ITANUPConvolutionTests)
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 ITAConvolution::ITAConvolution)
set_property (TARGET NUPFSegTest PROPERTY FOLDER "Tests/ITAConvolution/NUP")
add_executable( NUPFSegTest "NUPFSegTest.cpp" )
target_link_libraries( NUPFSegTest ${VISTA_USE_PACKAGE_LIBRARIES} )
install (TARGETS NUPFSegTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
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 ITAConvolution::ITAConvolution)
add_executable( NUPTest "NUPTest.cpp" )
target_link_libraries( NUPTest ${VISTA_USE_PACKAGE_LIBRARIES} )
set_property (TARGET NUPTest PROPERTY FOLDER "Tests/ITAConvolution/NUP")
vista_configure_app( NUPTest )
vista_install( NUPTest )
vista_create_default_info_file( NUPTest )
install (TARGETS NUPTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
set_property( TARGET NUPTest PROPERTY FOLDER "ITACoreLibs/Tests/ITAConvolution/NUP" )
# ######################################################################################################################
if( FALSE )
if (ITA_CONVOLUTION_NUPCONV_WITH_PERFORMANCE_LOGGER)
# Deactivated, because NUP with data source is not available.
add_executable (NUPCPPTest NUPCPPTest.cpp)
target_link_libraries (NUPCPPTest ITAConvolution::ITAConvolution)
add_executable( ITANUPCFileTest "ITANUPCFileTest.cpp" "ITANUPCHelpers.cpp" "ITANUPCHelpers.h" )
target_link_libraries( ITANUPCFileTest ${VISTA_USE_PACKAGE_LIBRARIES} )
set_property (TARGET NUPCPPTest PROPERTY FOLDER "Tests/ITAConvolution/NUP")
vista_configure_app( ITANUPCFileTest )
vista_install( ITANUPCFileTest )
vista_create_default_info_file( ITANUPCFileTest )
install (TARGETS NUPCPPTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
set_property( TARGET ITANUPCFileTest PROPERTY FOLDER "ITACoreLibs/Tests/ITAConvolution/NUP" )
# ##################################################################################################################
endif( )
if( ITA_CONVOLUTION_NUPCONV_WITH_PERFORMANCE_LOGGER )
add_executable (NUPConvPerformanceProvileView NUPConvPerformanceProvileView.cpp)
target_link_libraries (NUPConvPerformanceProvileView ITAConvolution::ITAConvolution)
set_property (TARGET NUPConvPerformanceProvileView PROPERTY FOLDER "Tests/ITAConvolution/NUP")
add_executable( NUPCPPTest "NUPCPPTest.cpp" )
target_link_libraries( NUPCPPTest ${VISTA_USE_PACKAGE_LIBRARIES} )
install (TARGETS NUPConvPerformanceProvileView RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
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( )
endif ()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment