summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Caulier <[email protected]>2014-11-19 23:42:30 +0100
committerGilles Caulier <[email protected]>2014-11-19 23:42:30 +0100
commit4a25db872079650a59b4dd9f0eba4f38ece42011 (patch)
tree3d98c98c5ea8563b19b289cca2f3f8b21abdb389
parentf940981160af2d1f79ebf9d34e28b56d62f82994 (diff)
version.h file must be managed with top level flag from digiKam SC
-rw-r--r--CMakeLists.txt12
-rw-r--r--src/CMakeLists.txt5
2 files changed, 5 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b220153..249d83a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -87,12 +87,6 @@ find_package(KF5 REQUIRED COMPONENTS
KDELibs4Support
)
-# TODO: port to pure KF5
-#find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS
-# I18n
-# Completion
-#)
-
find_package(LibRaw ${LIBRAW_MIN_VERSION} REQUIRED)
set_package_properties("LibRaw" PROPERTIES
DESCRIPTION "Required to build libkdcraw"
@@ -138,10 +132,4 @@ install(EXPORT KF5KDcrawTargets
NAMESPACE KF5::
)
-install(FILES
- "${CMAKE_CURRENT_BINARY_DIR}/libkdcraw_version.h"
- DESTINATION "${KF5_INCLUDE_INSTALL_DIR}"
- COMPONENT Devel
-)
-
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2823722..80d9b34 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -66,6 +66,11 @@ if (NOT DIGIKAMSC_COMPILE_LIBKDCRAW)
DESTINATION ${KF5_INCLUDE_INSTALL_DIR}/KDCRAW
COMPONENT Devel
)
+
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libkdcraw_version.h"
+ DESTINATION "${KF5_INCLUDE_INSTALL_DIR}"
+ COMPONENT Devel
+ )
endif()