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 ) project (ITAConvolutionTests)
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
vista_use_package( ITAConvolution REQUIRED FIND_DEPENDENCIES ) # ######################################################################################################################
if( ITA_CORE_LIBS_BUILD_STATIC ) add_executable (ITADirectConvolutionTest ITADirectConvolutionTest.cpp)
add_definitions( -DITA_BASE_STATIC -DITA_FFT_STATIC -DITA_CONVOLUTION_STATIC ) target_link_libraries (ITADirectConvolutionTest ITAConvolution::ITAConvolution)
endif( )
set_property (TARGET ITADirectConvolutionTest PROPERTY FOLDER "Tests/ITAConvolution")
add_executable( ITADirectConvolutionTest "ITADirectConvolutionTest.cpp" ) install (TARGETS ITADirectConvolutionTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
target_link_libraries( ITADirectConvolutionTest ${VISTA_USE_PACKAGE_LIBRARIES} )
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" ) install (TARGETS ITAUniformPartitionedConvolutionTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
target_link_libraries( ITAUniformPartitionedConvolutionTest ${VISTA_USE_PACKAGE_LIBRARIES} )
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)
if( ITA_CONVOLUTION_WITH_NUPCONV ) endif ()
add_subdirectory( "NUPConvolutionTest" )
endif( )
cmake_minimum_required( VERSION 2.8 ) cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
project( ITANUPConvolutionTests ) 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_executable (NUPFSegTest NUPFSegTest.cpp)
add_definitions( -DITA_BASE_STATIC -DITA_DATASOURCES_STATIC -DITA_CONVOLUTION_STATIC ) target_link_libraries (NUPFSegTest ITAConvolution::ITAConvolution)
endif( )
set_property (TARGET NUPFSegTest PROPERTY FOLDER "Tests/ITAConvolution/NUP")
add_executable( NUPFSegTest "NUPFSegTest.cpp" ) install (TARGETS NUPFSegTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
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 ITAConvolution::ITAConvolution)
add_executable( NUPTest "NUPTest.cpp" ) set_property (TARGET NUPTest PROPERTY FOLDER "Tests/ITAConvolution/NUP")
target_link_libraries( NUPTest ${VISTA_USE_PACKAGE_LIBRARIES} )
vista_configure_app( NUPTest ) install (TARGETS NUPTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
vista_install( NUPTest )
vista_create_default_info_file( NUPTest )
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" ) set_property (TARGET NUPCPPTest PROPERTY FOLDER "Tests/ITAConvolution/NUP")
target_link_libraries( ITANUPCFileTest ${VISTA_USE_PACKAGE_LIBRARIES} )
vista_configure_app( ITANUPCFileTest ) install (TARGETS NUPCPPTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
vista_install( ITANUPCFileTest )
vista_create_default_info_file( ITANUPCFileTest )
set_property( TARGET ITANUPCFileTest PROPERTY FOLDER "ITACoreLibs/Tests/ITAConvolution/NUP" ) # ##################################################################################################################
endif( ) add_executable (NUPConvPerformanceProvileView NUPConvPerformanceProvileView.cpp)
target_link_libraries (NUPConvPerformanceProvileView ITAConvolution::ITAConvolution)
if( ITA_CONVOLUTION_NUPCONV_WITH_PERFORMANCE_LOGGER )
set_property (TARGET NUPConvPerformanceProvileView PROPERTY FOLDER "Tests/ITAConvolution/NUP")
add_executable( NUPCPPTest "NUPCPPTest.cpp" ) install (TARGETS NUPConvPerformanceProvileView RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
target_link_libraries( NUPCPPTest ${VISTA_USE_PACKAGE_LIBRARIES} )
vista_configure_app( NUPCPPTest ) endif ()
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( )
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