Skip to content

Commit

Permalink
Refactor CMake test config (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpranam committed Feb 9, 2022
1 parent c7aba23 commit 1995201
Showing 1 changed file with 13 additions and 30 deletions.
43 changes: 13 additions & 30 deletions test/core/image_processing/CMakeLists.txt
Expand Up @@ -10,7 +10,18 @@ foreach(_name
threshold_binary
threshold_truncate
threshold_otsu
morphology)
morphology
lanczos_scaling
simple_kernels
harris
hessian
box_filter
median_filter
sobel_scharr
anisotropic_diffusion
hough_parameter
hough_line_transform
hough_circle_transform)
set(_test t_core_image_processing_${_name})
set(_target test_core_image_processing_${_name})

Expand All @@ -26,33 +37,5 @@ foreach(_name

unset(_name)
unset(_target)
endforeach()

foreach(_name
lanczos_scaling
simple_kernels
harris
hessian
box_filter
median_filter
sobel_scharr
anisotropic_diffusion
hough_parameter
hough_line_transform
hough_circle_transform)
set(_test t_core_image_processing_${_name})
set(_target test_core_image_processing_${_name})

add_executable(${_target} "")
target_sources(${_target} PRIVATE ${_name}.cpp)
target_link_libraries(${_target}
PRIVATE
gil_compile_options
gil_include_directories
gil_dependencies)
add_test(NAME ${_test} COMMAND ${_target})

unset(_name)
unset(_target)
unset(_test)
unset(_test)
endforeach()

0 comments on commit 1995201

Please sign in to comment.