$NetBSD: patch-CMakeLists.txt,v 1.3 2024/08/24 04:30:18 markd Exp $ Work with kImageAnnotator 0.7.1 --- CMakeLists.txt.orig 2023-11-30 17:00:43.000000000 +0000 +++ CMakeLists.txt @@ -166,12 +166,12 @@ if(NOT WITHOUT_X11) endif() if (QT_MAJOR_VERSION STREQUAL "5") - find_package(kImageAnnotator) - set_package_properties(kImageAnnotator PROPERTIES URL "https://github.com/ksnip/kImageAnnotator" DESCRIPTION "The kImageAnnotator library provides tools to annotate" TYPE REQUIRED) - if(kImageAnnotator_FOUND) + find_package(kImageAnnotator-Qt5) + set_package_properties(kImageAnnotator-Qt5 PROPERTIES URL "https://github.com/ksnip/kImageAnnotator" DESCRIPTION "The kImageAnnotator library provides tools to annotate" TYPE REQUIRED) + if(kImageAnnotator-Qt5_FOUND) set(KIMAGEANNOTATOR_FOUND 1) - find_package(kColorPicker REQUIRED) - if(NOT kImageAnnotator_VERSION VERSION_LESS 0.5.0) + find_package(kColorPicker-Qt5 REQUIRED) + if(NOT kImageAnnotator-Qt5_VERSION VERSION_LESS 0.5.0) set(KIMAGEANNOTATOR_CAN_LOAD_TRANSLATIONS 1) endif() endif()