Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor CMake test config #634

Merged
merged 1 commit into from
Feb 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 13 additions & 30 deletions test/core/image_processing/CMakeLists.txt
Original file line number Diff line number Diff line change
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()