Files
CMake/Tests/FindImageMagick/CMakeLists.txt
hstejas 1bba218214 FindImageMagick: Define targets for specific components
- With this change we can use e.g. ImageMagick::Magick++ directly
  in targt_link_libraries.
- This change also adds CFLAGS which was missing before.
- Also adds example on how to use the targets.
2023-01-27 10:33:10 -05:00

11 lines
375 B
CMake

add_test(NAME FindImageMagick.Test COMMAND
${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
--build-and-test
"${CMake_SOURCE_DIR}/Tests/FindImageMagick/Test"
"${CMake_BINARY_DIR}/Tests/FindImageMagick/Test"
${build_generator_args}
--build-project TestFindImageMagick
--build-options ${build_options}
--test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
)