Files
CMake/Tests/FindImageMagick/Test/CMakeLists.txt
T
Brad King bd7b2293aa Tests: Bump CMake minimum required version in find-module tests to 3.5
CMake 3.27 deprecates compatibility with CMake < 3.5.
Update find module tests to avoid the deprecation warning.
2023-03-08 15:41:43 -05:00

14 lines
490 B
CMake

cmake_minimum_required(VERSION 3.5)
project(FindImageMagick C CXX)
include(CTest)
find_package(ImageMagick REQUIRED COMPONENTS Magick++ MagickWand)
add_executable(test_magick++ main_magick++.cxx)
target_link_libraries(test_magick++ PRIVATE ImageMagick::Magick++)
add_test(NAME test_magick++ COMMAND test_magick++)
add_executable(test_magick_wand main_magick_wand.c)
target_link_libraries(test_magick_wand ImageMagick::MagickWand)
add_test(NAME test_magick_wand COMMAND test_magick_wand)