diff --git a/CMakeLists.txt b/CMakeLists.txt index 4dac235b46..db8db94a8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,638 +1,638 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # Copyright (c) 2015 by Veaceslav Munteanu, # Copyright (c) 2015 by Mohamed Anwer, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. project(digikam) message(STATUS "----------------------------------------------------------------------------------") message(STATUS "Starting CMake configuration for: ${PROJECT_NAME}") # ============================================================================== # Information to update before to release this package. # digiKam version set(DIGIKAM_MAJOR_VERSION "5") set(DIGIKAM_MINOR_VERSION "8") set(DIGIKAM_PATCH_VERSION "0") # Suffix to add at end of version string. Usual values are: # "-git" : alpha code unstable from git. Do not use in production # "-beta1" : beta1 release. # "-beta2" : beta2 release. # "-beta3" : beta3 release. # "-rc" : release candidate. # "" : final release. Can be used in production. set(DIGIKAM_SUFFIX_VERSION "") # ============================================================================== # Set env. variables accordingly. # NOTE: This string is used to set libdigikamcore and libdigikamdatabase SO version ID set(DIGIKAM_VERSION_SHORT "${DIGIKAM_MAJOR_VERSION}.${DIGIKAM_MINOR_VERSION}.${DIGIKAM_PATCH_VERSION}" ) set(DIGIKAM_VERSION_STRING "${DIGIKAM_VERSION_SHORT}${DIGIKAM_SUFFIX_VERSION}" ) # Core Database XML version # We must set this variable here at top level because it is used in both # libs/database/core and data/database # Version history: # 1 : Original database XML file, published in production. # 2 : 08-08-2014 : Fix Images.names field size (see bug #327646). # 3 : 05/11/2015 : Add Face DB schema. set(DBCORECONFIG_XML_VERSION "3") # ============================================================================== set(CMAKE_MIN_VERSION "3.0.0") set(ECM_MIN_VERSION "1.7.0") set(KF5_MIN_VERSION "5.1.0") set(QT_MIN_VERSION "5.6.0") set(KIPI_MIN_VERSION "5.0.0") set(KSANE_MIN_VERSION "5.0.0") set(LENSFUN_MIN_VERSION "0.2.6.0") set(EXIV2_MIN_VERSION "0.26") set(AKONADI_MIN_VERSION "4.89.0") # Akonadi Contact dependency set(CALENDAR_MIN_VERSION "4.81.0") # Calendar Core dependency set(QTAV_MIN_VERSION "1.12.0") cmake_minimum_required(VERSION ${CMAKE_MIN_VERSION}) ############## ECM setup ###################### find_package(ECM ${ECM_MIN_VERSION} CONFIG REQUIRED) set(CMAKE_MODULE_PATH ${digikam_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH}) # Cmake macros include(GenerateExportHeader) include(CheckFunctionExists) include(FeatureSummary) # ECM macros include(ECMOptionalAddSubdirectory) include(ECMAddTests) include(ECMMarkNonGuiExecutable) include(ECMGenerateHeaders) include(ECMGeneratePriFile) include(ECMSetupVersion) include(ECMInstallIcons) include(ECMAddAppIcon) include(ECMPoQmTools) # KDE macros include(KDEInstallDirs) include(KDECMakeSettings) include(KDEFrameworkCompilerSettings) include(KDECompilerSettings) # Local macros include(MacroUtils) include(MacroLocalLibs) include(MacroOpenCV) include(MacroJPEG) include(MacroBoolTo01) # ============================================================================== option(ENABLE_OPENCV3 "Build digiKam with OpenCV3 instead OpenCV2 (default=ON)" ON) option(ENABLE_KFILEMETADATASUPPORT "Build digiKam with KDE files indexer support (default=OFF)" OFF) option(ENABLE_AKONADICONTACTSUPPORT "Build digiKam with KDE Mail Contacts support (default=OFF)" OFF) option(ENABLE_MEDIAPLAYER "Build digiKam with Media Player support (default=OFF)" OFF) option(ENABLE_DLNA "Build digiKam with DLNA Media Server support (default=ON)" ON) option(ENABLE_DBUS "Build digiKam with DBUS support (default=ON)" ON) option(ENABLE_APPSTYLES "Build digiKam with support for changing the widget application style (default=OFF)" OFF) # Mysql support options (experimental): option(ENABLE_MYSQLSUPPORT "Build digiKam with MySQL dabatase support (default=ON)" ON) option(ENABLE_INTERNALMYSQL "Build digiKam with internal MySQL server executable (default=ON)" ON) # Debug options: option(ENABLE_DIGIKAM_MODELTEST "Enable ModelTest on some models for debugging (default=OFF)" OFF) ############## Find Packages ################### find_package(Qt5 ${QT_MIN_VERSION} NO_MODULE COMPONENTS Core Concurrent Widgets Gui Sql Xml PrintSupport WebKitWidgets Network ) find_package(Qt5 ${QT_MIN_VERSION} OPTIONAL_COMPONENTS DBus OpenGL ) if(ENABLE_DBUS) if(NOT Qt5DBus_FOUND) set(ENABLE_DBUS OFF) endif() endif() if(BUILD_TESTING) find_package(Qt5 ${QT_MIN_VERSION} NO_MODULE COMPONENTS Test) endif() find_package(KF5 ${KF5_MIN_VERSION} COMPONENTS XmlGui CoreAddons Config Service WindowSystem Solid I18n ) find_package(KF5 ${KF5_MIN_VERSION} QUIET OPTIONAL_COMPONENTS KIO # For Desktop integration (Widgets only). IconThemes # For Desktop integration. FileMetaData # For KDE file indexer support. ThreadWeaver # For Panorama tool. NotifyConfig # KDE desktop application notify configuration. Notifications # KDE desktop notifications integration. ) find_package(KF5 ${AKONADI_MIN_VERSION} QUIET OPTIONAL_COMPONENTS AkonadiContact # For KDE Mail Contacts support. ) find_package(KF5 ${CALENDAR_MIN_VERSION} QUIET OPTIONAL_COMPONENTS CalendarCore # For Calendar tool. ) if(ENABLE_AKONADICONTACTSUPPORT AND NOT KF5AkonadiContact_FOUND) set(ENABLE_KFILEMETADATASUPPORT OFF) endif() if(ENABLE_KFILEMETADATASUPPORT AND NOT KF5FileMetaData_FOUND) set(ENABLE_KFILEMETADATASUPPORT OFF) endif() # Check if KIO have been compiled with KIOWidgets. digiKam only needs this one. if(KF5KIO_FOUND) get_target_property(KIOWidgets_INCLUDE_DIRS KF5::KIOWidgets INTERFACE_INCLUDE_DIRECTORIES) message(STATUS "KF5::KIOWidgets include dirs: ${KIOWidgets_INCLUDE_DIRS}") if(NOT KIOWidgets_INCLUDE_DIRS) message(STATUS "KF5::KIOWidgets not available in shared KIO library. KIO support disabled.") set(KF5KIO_FOUND FALSE) endif() endif() # ============================================================================== # Dependencies Rules # mandatory DETECT_JPEG() set(DIGIKAM_LIBJPEG_DIR libjpeg-${JPEG_LIB_VERSION}) find_package(TIFF) find_package(PNG) find_package(Boost) find_package(LCMS2) find_package(EXPAT) # For DNGWriter: XMP SDK need Expat library to compile. find_package(Threads) # For DNGWriter and LibRaw which needs native threads support. find_package(Exiv2 ${EXIV2_MIN_VERSION}) set_package_properties("Exiv2" PROPERTIES DESCRIPTION "Required to build digiKam" URL "http://www.exiv2.org" TYPE RECOMMENDED PURPOSE "Library to manage image metadata" ) # -- check Media player -------------------------------------------------------- find_package(QtAV) if(ENABLE_MEDIAPLAYER) - if(NOT ${QTAV_FOUND} OR ${QTAV_VERSION_STRING} VERSION_LESS ${QTAV_MIN_VERSION}) + if(NOT ${QtAV_FOUND} OR ${QTAV_VERSION_STRING} VERSION_LESS ${QTAV_MIN_VERSION}) set(ENABLE_MEDIAPLAYER OFF) - set(QTAV_FOUND OFF) + set(QtAV_FOUND OFF) message(STATUS "ENABLE_MEDIAPLAYER option is enabled but QtAV cannot be found. Media player support is disabled.") else() include_directories(${QTAV_INCLUDE_DIRS}) message(STATUS "Media player support is enabled.") endif() endif() # -- check OpenCV -------------------------------------------------------------- if(ENABLE_OPENCV3) set(OPENCV_MIN_VERSION "3.1.0") DETECT_OPENCV(${OPENCV_MIN_VERSION} core objdetect imgproc imgcodecs) if(${OpenCV_FOUND}) if(${OpenCV_VERSION} VERSION_LESS 3.1.0) message(STATUS "ENABLE_OPENCV3 option is enabled and OpenCV < 3.1.0 have been found. Disabled ENABLE_OPENCV3") set(OpenCV_FOUND FALSE) endif() endif() else() set(OPENCV_MIN_VERSION "2.4.9") DETECT_OPENCV(${OPENCV_MIN_VERSION} core objdetect imgproc contrib legacy) if(${OpenCV_FOUND}) if(${OpenCV_VERSION} VERSION_GREATER 2.4.99) message(STATUS "ENABLE_OPENCV3 option is disabled and OpenCV >= 3.0.0 have been found. Enabled ENABLE_OPENCV3") set(OpenCV_FOUND FALSE) endif() endif() endif() configure_file(${CMAKE_CURRENT_SOURCE_DIR}/app/utils/libopencv.h.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/app/utils/libopencv.h) # -- optionals ----------------------------------------------------------------- find_package(FLEX) # For Panorama tool. find_package(BISON) # For Panorama tool. find_package(LibXslt) # For HTMLGallery tool. find_package(LibXml2) # For HTMLGallery tool. DETECT_LIBKIPI(${KIPI_MIN_VERSION}) DETECT_LIBKSANE(${KSANE_MIN_VERSION}) find_package(Marble) find_package(PkgConfig) find_package(Jasper) find_package(Eigen3) # For Refocus tool. find_package(OpenGL) # For Presentation tool. # For Monitor Profiles management with LCMS find_package(X11) if(X11_FOUND) find_package(Qt5 ${QT_MIN_VERSION} NO_MODULE COMPONENTS X11Extras) set(HAVE_X11 TRUE) else() set(HAVE_X11 FALSE) endif() # decide if Presentation tool can be built with OpenGL if(OPENGL_FOUND AND OPENGL_GLU_FOUND AND Qt5OpenGL_FOUND) set(HAVE_OPENGL TRUE) elseif() set(HAVE_OPENGL FALSE) endif() # For LibRaw if(WIN32) find_library(WSOCK32_LIBRARY wsock32) find_library(WS2_32_LIBRARY ws2_32) endif() # -- To link under Solaris (see bug #274484) ----------------------------------- if(NOT WIN32) find_library(MATH_LIBRARY m) endif() if(CMAKE_SYSTEM_NAME STREQUAL FreeBSD) find_library(KVM_LIBRARY kvm) endif() # ============================================================================== # More Optional Dependencies find_package(Doxygen) find_package(Lqr-1) # -- libgphoto2 rules ---------------------------------------------------------- if(NOT WIN32) find_package(Gphoto2) - if(GPHOTO2_FOUND) + if(Gphoto2_FOUND) if("${GPHOTO2_VERSION_STRING}" VERSION_GREATER "2.4.0") set(VERSION_GPHOTO2 true) else() set(VERSION_GPHOTO2 false) endif() if("${GPHOTO2_VERSION_STRING}" VERSION_GREATER "2.5.0") set(VERSION_GPHOTO25 true) message(STATUS "libgphoto2 API version >= 2.5") else() set(VERSION_GPHOTO25 false) message(STATUS "libgphoto2 API version < 2.5") endif() if(VERSION_GPHOTO25) set(HAVE_GPHOTO25 1) else() set(HAVE_GPHOTO25 0) endif() endif() endif() # -- Check LensFun library for Lens auto-correction tool ----------------------- find_package(LensFun) if(LENSFUN_VERSION) message(STATUS "liblensfun: Found version ${LENSFUN_VERSION} (required: ${LENSFUN_MIN_VERSION})") if(${LENSFUN_VERSION} VERSION_LESS ${LENSFUN_MIN_VERSION}) - set(LENSFUN_FOUND FALSE) + set(LensFun_FOUND FALSE) endif() else() message(STATUS "liblensfun: Version information not found, your version is probably too old.") - set(LENSFUN_FOUND FALSE) + set(LensFun_FOUND FALSE) endif() # -- Check dependencies for Panorama tool -------------------------------------- if(FLEX_FOUND AND BISON_FOUND AND KF5ThreadWeaver_FOUND) set(HAVE_PANORAMA 1) else() set(HAVE_PANORAMA 0) endif() # -- Check dependencies for HTMLGallery tool ----------------------------------- -if(LIBXML2_FOUND AND LIBXSLT_FOUND) +if(LibXml2_FOUND AND LibXslt_FOUND) set(HAVE_HTMLGALLERY 1) else() set(HAVE_HTMLGALLERY 0) endif() # -- compilation options definitions ------------------------------------------- MACRO_BOOL_TO_01(KF5Kipi_FOUND HAVE_KIPI) MACRO_BOOL_TO_01(KF5Sane_FOUND HAVE_KSANE) MACRO_BOOL_TO_01(KF5FileMetaData_FOUND HAVE_KFILEMETADATA) MACRO_BOOL_TO_01(KF5AkonadiContact_FOUND HAVE_AKONADICONTACT) MACRO_BOOL_TO_01(KF5CalendarCore_FOUND HAVE_KCALENDAR) MACRO_BOOL_TO_01(KF5Notifications_FOUND HAVE_KNOTIFICATIONS) MACRO_BOOL_TO_01(KF5NotifyConfig_FOUND HAVE_KNOTIFYCONFIG) MACRO_BOOL_TO_01(KF5KIO_FOUND HAVE_KIO) MACRO_BOOL_TO_01(KF5IconThemes_FOUND HAVE_KICONTHEMES) -MACRO_BOOL_TO_01(LENSFUN_FOUND HAVE_LENSFUN) +MACRO_BOOL_TO_01(LensFun_FOUND HAVE_LENSFUN) MACRO_BOOL_TO_01(Lqr-1_FOUND HAVE_LIBLQR_1) -MACRO_BOOL_TO_01(GPHOTO2_FOUND HAVE_GPHOTO2) -MACRO_BOOL_TO_01(JASPER_FOUND HAVE_JASPER) -MACRO_BOOL_TO_01(EIGEN3_FOUND HAVE_EIGEN3) -MACRO_BOOL_TO_01(MARBLE_FOUND HAVE_MARBLE) +MACRO_BOOL_TO_01(Gphoto2_FOUND HAVE_GPHOTO2) +MACRO_BOOL_TO_01(Jasper_FOUND HAVE_JASPER) +MACRO_BOOL_TO_01(Eigen3_FOUND HAVE_EIGEN3) +MACRO_BOOL_TO_01(Marble_FOUND HAVE_MARBLE) MACRO_BOOL_TO_01(ENABLE_MYSQLSUPPORT HAVE_MYSQLSUPPORT) MACRO_BOOL_TO_01(ENABLE_INTERNALMYSQL HAVE_INTERNALMYSQL) MACRO_BOOL_TO_01(ENABLE_MEDIAPLAYER HAVE_MEDIAPLAYER) MACRO_BOOL_TO_01(ENABLE_DLNA HAVE_DLNA) MACRO_BOOL_TO_01(ENABLE_DBUS HAVE_DBUS) MACRO_BOOL_TO_01(ENABLE_APPSTYLES HAVE_APPSTYLE_SUPPORT) # Whether to use Qt's scaling to downscale previews. Under MacOSX, Qt # can make use of the higher physical resolution of Retina # displays. However, it seems that other Qt renderers perform badly at # this, so disable. If other renderers switch to coarser logical # pixels, one probably needs this feature on these platforms as well. MACRO_BOOL_TO_01(APPLE USE_QT_SCALING) # Set config files accordingly with optional dependencies configure_file(app/utils/digikam_config.h.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/app/utils/digikam_config.h) # ============================================================================== # Log messages message(STATUS "") message(STATUS "----------------------------------------------------------------------------------") message(STATUS " digiKam ${DIGIKAM_VERSION_STRING} dependencies results ") message(STATUS "") PRINT_COMPONENT_COMPILE_STATUS("MySQL Database Support" ENABLE_MYSQLSUPPORT) PRINT_COMPONENT_COMPILE_STATUS("MySQL Internal Support" ENABLE_INTERNALMYSQL) PRINT_COMPONENT_COMPILE_STATUS("DBUS Support" ENABLE_DBUS) PRINT_COMPONENT_COMPILE_STATUS("App. Style Support" ENABLE_APPSTYLES) # ============================================================================== PRINT_LIBRARY_STATUS("libboostgraph" "http://www.boost.org/doc/libs" "(version >= 1.43.0)" Boost_FOUND) -PRINT_LIBRARY_STATUS("libexiv2" "http://www.exiv2.org" "(version >= ${EXIV2_MIN_VERSION}" EXIV2_FOUND) +PRINT_LIBRARY_STATUS("libexiv2" "http://www.exiv2.org" "(version >= ${EXIV2_MIN_VERSION}" Exiv2_FOUND) PRINT_LIBRARY_STATUS("libexpat" "http://expat.sourceforge.net" "(version >= 2.0.0)" EXPAT_FOUND) PRINT_LIBRARY_STATUS("libjpeg" "http://www.ijg.org" "(version >= 6b)" JPEG_FOUND) PRINT_LIBRARY_STATUS("libkde" "http://www.kde.org" "(version >= ${KF5_MIN_VERSION})" KF5_FOUND) PRINT_LIBRARY_STATUS("liblcms" "http://www.littlecms.com" "(version >= 1.0.0)" LCMS2_FOUND) PRINT_LIBRARY_STATUS("libopencv" "http://opencv.willowgarage.com" "(version >= ${OPENCV_MIN_VERSION})" OpenCV_FOUND) PRINT_LIBRARY_STATUS("libpng" "http://www.libpng.org/pub/png/libpng.html" "(version >= 1.2.7)" PNG_FOUND) PRINT_LIBRARY_STATUS("libpthread" "http://www.gnu.org/software/hurd/libpthread.html" "(version >= 2.0.0)" CMAKE_USE_PTHREADS_INIT OR CMAKE_USE_WIN32_THREADS_INIT) PRINT_LIBRARY_STATUS("libqt" "http://www.qtsoftware.com" "(version >= ${QT_MIN_VERSION})" Qt5_FOUND) PRINT_LIBRARY_STATUS("libtiff" "http://www.remotesensing.org/libtiff" "(version >= 3.8.2)" TIFF_FOUND) # ============================================================================== PRINT_OPTIONAL_LIBRARY_STATUS("bison" "https://www.gnu.org/software/bison/" "(version >= 2.5.0)" "digiKam will be compiled without Panorama support." BISON_FOUND) -PRINT_OPTIONAL_LIBRARY_STATUS("doxygen" "http://www.doxygen.org" "(version >= 1.8.0)" "digiKam will be compiled without API documentation building support." DOXYGEN_FOUND) +PRINT_OPTIONAL_LIBRARY_STATUS("doxygen" "http://www.doxygen.org" "(version >= 1.8.0)" "digiKam will be compiled without API documentation building support." Doxygen_FOUND) PRINT_OPTIONAL_LIBRARY_STATUS("flex" "http://flex.sourceforge.net/" "(version >= 2.5.0)" "digiKam will be compiled without Panorama support." FLEX_FOUND) PRINT_OPTIONAL_LIBRARY_STATUS("libakonadicontact" "https://projects.kde.org/projects/kde/kdepimlibs" "(version >= ${AKONADI_MIN_VERSION})" "digiKam will be compiled without KDE address book support." KF5AkonadiContact_FOUND) -PRINT_OPTIONAL_LIBRARY_STATUS("libeigen3" "http://eigen.tuxfamily.org" "(version >= 3.0.0)" "digiKam will be compiled without Refocus tool support." EIGEN3_FOUND) -PRINT_OPTIONAL_LIBRARY_STATUS("libgphoto2" "http://www.gphoto.org" "(version >= 2.4.0)" "digiKam will be compiled without GPhoto2 camera drivers support." GPHOTO2_FOUND) -PRINT_OPTIONAL_LIBRARY_STATUS("libjasper" "http://www.ece.uvic.ca/~mdadams/jasper" "(version >= 1.7.0)" "digiKam will be compiled without JPEG2000 support." JASPER_FOUND) +PRINT_OPTIONAL_LIBRARY_STATUS("libeigen3" "http://eigen.tuxfamily.org" "(version >= 3.0.0)" "digiKam will be compiled without Refocus tool support." Eigen3_FOUND) +PRINT_OPTIONAL_LIBRARY_STATUS("libgphoto2" "http://www.gphoto.org" "(version >= 2.4.0)" "digiKam will be compiled without GPhoto2 camera drivers support." Gphoto2_FOUND) +PRINT_OPTIONAL_LIBRARY_STATUS("libjasper" "http://www.ece.uvic.ca/~mdadams/jasper" "(version >= 1.7.0)" "digiKam will be compiled without JPEG2000 support." Jasper_FOUND) PRINT_OPTIONAL_LIBRARY_STATUS("libkcalcore" "https://projects.kde.org/projects/kde/pim/kcalcore" "(version >= ${CALENDAR_MIN_VERSION})" "digiKam will be compiled without KDE calendar support." KF5CalendarCore_FOUND) PRINT_OPTIONAL_LIBRARY_STATUS("libkfilemetadata" "https://projects.kde.org/projects/kde/kdelibs/baloo" "(version >= ${KF5_MIN_VERSION})" "digiKam will be compiled without KDE file metadata support." KF5FileMetaData_FOUND) PRINT_OPTIONAL_LIBRARY_STATUS("libkiconthemes" "https://projects.kde.org/projects/frameworks/kiconthemes" "(version >= ${KF5_MIN_VERSION})" "digiKam will be compiled without KDE desktop icon themes support." KF5IconThemes_FOUND) PRINT_OPTIONAL_LIBRARY_STATUS("libkio" "https://projects.kde.org/projects/frameworks/kio" "(version >= ${KF5_MIN_VERSION})" "digiKam will be compiled without KDE desktop integration support." KF5KIO_FOUND) PRINT_OPTIONAL_LIBRARY_STATUS("libkipi" "https://projects.kde.org/projects/kde/kdegraphics/libs/libkipi" "(version >= ${KIPI_MIN_VERSION})" "digiKam will be compiled without Kipi-plugins support." KF5Kipi_FOUND) PRINT_OPTIONAL_LIBRARY_STATUS("libknotifications" "https://projects.kde.org/projects/frameworks/knotifications" "(version >= ${KF5_MIN_VERSION})" "digiKam will be compiled without KDE desktop notifications support." KF5Notifications_FOUND) PRINT_OPTIONAL_LIBRARY_STATUS("libknotifyconfig" "https://projects.kde.org/projects/frameworks/knotifyconfig" "(version >= ${KF5_MIN_VERSION})" "digiKam will be compiled without KDE desktop notify configuration support." KF5NotifyConfig_FOUND) PRINT_OPTIONAL_LIBRARY_STATUS("libksane" "https://projects.kde.org/projects/kde/kdegraphics/libs/libksane" "(version >= ${KSANE_MIN_VERSION})" "digiKam will be compiled without libksane support." KF5Sane_FOUND) -PRINT_OPTIONAL_LIBRARY_STATUS("liblensfun" "http://lensfun.sourceforge.net" "(version >= 0.2.6)" "digiKam will be compiled without Lens Auto Correction tool support." LENSFUN_FOUND) +PRINT_OPTIONAL_LIBRARY_STATUS("liblensfun" "http://lensfun.sourceforge.net" "(version >= 0.2.6)" "digiKam will be compiled without Lens Auto Correction tool support." LensFun_FOUND) PRINT_OPTIONAL_LIBRARY_STATUS("liblqr-1" "http://liblqr.wikidot.com" "(version >= 0.4.1)" "digiKam will be compiled without Contents Aware Resizer tool support." Lqr-1_FOUND) -PRINT_OPTIONAL_LIBRARY_STATUS("libmarble" "https://projects.kde.org/projects/kde/kdeedu/marble" "(version >= 0.22.0)" "digiKam will be compiled without geolocation maps support." MARBLE_FOUND) -PRINT_OPTIONAL_LIBRARY_STATUS("libqtav" "http://www.qtav.org/" "(version >= ${QTAV_MIN_VERSION})" "digiKam will be compiled without Media Player support." QTAV_FOUND) +PRINT_OPTIONAL_LIBRARY_STATUS("libmarble" "https://projects.kde.org/projects/kde/kdeedu/marble" "(version >= 0.22.0)" "digiKam will be compiled without geolocation maps support." Marble_FOUND) +PRINT_OPTIONAL_LIBRARY_STATUS("libqtav" "http://www.qtav.org/" "(version >= ${QTAV_MIN_VERSION})" "digiKam will be compiled without Media Player support." QtAV_FOUND) PRINT_OPTIONAL_LIBRARY_STATUS("libthreadweaver" "https://projects.kde.org/projects/frameworks/threadweaver" "(version >= ${KF5_MIN_VERSION})" "digiKam will be compiled without Panorama support." KF5ThreadWeaver_FOUND) -PRINT_OPTIONAL_LIBRARY_STATUS("libxml2" "http://xmlsoft.org" "(version >= 2.7.0)" "digiKam will be compiled without HTMLGallery support." LIBXML2_FOUND) -PRINT_OPTIONAL_LIBRARY_STATUS("libxslt" "http://xmlsoft.org/XSLT" "(version >= 1.1.0)" "digiKam will be compiled without HTMLGallery support." LIBXSLT_FOUND) +PRINT_OPTIONAL_LIBRARY_STATUS("libxml2" "http://xmlsoft.org" "(version >= 2.7.0)" "digiKam will be compiled without HTMLGallery support." LibXml2_FOUND) +PRINT_OPTIONAL_LIBRARY_STATUS("libxslt" "http://xmlsoft.org/XSLT" "(version >= 1.1.0)" "digiKam will be compiled without HTMLGallery support." LibXslt_FOUND) PRINT_OPTIONAL_LIBRARY_STATUS("OpenGL" "http://www.mesa3d.org" "(version >= 11.0.0)" "digiKam will be compiled without OpenGL support." HAVE_OPENGL) # ============================================================================== if(Boost_FOUND AND - EXIV2_FOUND AND + Exiv2_FOUND AND EXPAT_FOUND AND JPEG_FOUND AND KF5_FOUND AND LCMS2_FOUND AND OpenCV_FOUND AND PNG_FOUND AND Qt5_FOUND AND TIFF_FOUND AND Threads_FOUND AND (Qt5Test_FOUND OR NOT BUILD_TESTING) AND (Qt5X11Extras_FOUND OR NOT HAVE_X11) AND (CMAKE_USE_PTHREADS_INIT OR CMAKE_USE_WIN32_THREADS_INIT) ) message(STATUS " digiKam can be compiled.................. YES") set(DIGIKAM_CAN_BE_COMPILED true) else() message(FATAL_ERROR " digiKam will be compiled.................. NO (See the README file for more details about dependencies)") set(DIGIKAM_CAN_BE_COMPILED false) endif() message(STATUS "----------------------------------------------------------------------------------") message(STATUS "") if(DIGIKAM_CAN_BE_COMPILED) # ========================================================================== # Create git version header # We only do this IF we are in a .git dir find_file(GIT_MARKER entries PATHS ${CMAKE_SOURCE_DIR}/.git) if(NOT GIT_MARKER) set(GIT_MARKER ${CMAKE_SOURCE_DIR}/CMakeLists.txt) # Dummy file endif() # Add a custom command to drive the git script whenever the git entries # file changes. configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/templates/gitscript.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/gitscript.cmake" @ONLY) # Add a custom target to drive the custom command. add_custom_target(digikam-gitversion ALL COMMAND ${CMAKE_COMMAND} -P "${CMAKE_CURRENT_BINARY_DIR}/gitscript.cmake") # ========================================================================== # To prevent warnings from M$ compiler if(WIN32 AND MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS) add_definitions(-D_ATL_SECURE_NO_WARNINGS) add_definitions(-D_AFX_SECURE_NO_WARNINGS) endif() # ========================================================================== # Definitions rules # Remove pedantic GCC flag which generate a lots of warnings on the console # with qCDebug() while(CMAKE_CXX_FLAGS MATCHES "-pedantic") string(REPLACE "-pedantic" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") endwhile() # Remove Wsuggest-override GCC flag which generate a lots of compile warnings while(CMAKE_CXX_FLAGS MATCHES "-Wsuggest-override") string(REPLACE "-Wsuggest-override" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") endwhile() # Remove Wdate-time GCC flag which generate a lots of compile warnings while(CMAKE_CXX_FLAGS MATCHES "-Wdate-time") string(REPLACE "-Wdate-time" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") endwhile() # translations catalog add_definitions(-DTRANSLATION_DOMAIN=\"digikam\") # NOTE: with libpgf 6.11.24 OpenMP is not very well supported. We disable # it to be safe. See B.K.O #273765 for details. add_definitions(-DLIBPGF_DISABLE_OPENMP) # To force to declare as exported classes in all sub components. # This will only done near to library declaration in Cmake files. if(WIN32) add_definitions(-Ddigikamcore_EXPORTS) add_definitions(-Ddigikamdatabase_EXPORTS) endif() # Enable C++ Exceptions support, require by Greycstoration algorithm # (CImg.h) and PGF codec kde_enable_exceptions() # ========================================================================== # Includes rules # Recursively get all directories which contain header files set(DK_INCLUDES_ALL "") HEADER_DIRECTORIES(DK_LOCAL_INCLUDES_RAW) # This macro will set all paths which do not contain libjpeg- # We will add later the directory we need foreach(var ${DK_LOCAL_INCLUDES_RAW}) string(REGEX MATCH "libjpeg-" item ${var}) if(item STREQUAL "") list(APPEND DK_LOCAL_INCLUDES ${var}) endif() endforeach() set(DK_LOCAL_INCLUDES ${DK_LOCAL_INCLUDES} libs/jpegutils/${DIGIKAM_LIBJPEG_DIR}) include_directories(${DK_LOCAL_INCLUDES}) # for config headers digikam_version.h gitversion.h digikam_config.h # digikam_dbconfig.h libopencv.h include_directories(${CMAKE_CURRENT_BINARY_DIR}/app/utils) include_directories(${OpenCV_INCLUDE_DIRS}) # ========================================================================== # Common targets parts set(CMAKE_POSITION_INDEPENDENT_CODE ON) add_subdirectory(data) add_subdirectory(libs) add_subdirectory(utilities) add_subdirectory(app) add_subdirectory(showfoto) if(BUILD_TESTING) add_subdirectory(tests) endif() endif() # ============================================================================== # API documentation generation -if(DOXYGEN_FOUND) +if(Doxygen_FOUND) set(API_DIR ${CMAKE_BINARY_DIR}/api) set(SOURCE_DIR ${CMAKE_SOURCE_DIR}) set(DOXYFILE ${CMAKE_BINARY_DIR}/Doxyfile) set(WARNFILE ${CMAKE_BINARY_DIR}/doxygen-warn.log) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/templates/Doxyfile.cmake.in ${DOXYFILE}) add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${DOXYFILE} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) endif() diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 603825bd3a..853015be31 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -1,564 +1,564 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # Copyright (c) 2015 by Veaceslav Munteanu, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif (POLICY CMP0063) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/utils/digikam_version.h.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/utils/digikam_version.h) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/utils/digikam_dbconfig.h.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/utils/digikam_dbconfig.h) # digikam core set(DIGIKAMCORE_OBJECTS $ $ $ $ $ $ $ $ $ $ $ $ $ # widgets $ $ $ $ $ # utilities $ $ $ $ $ $ $ $ # NOTE: even if optional this code need to be compiled here. $ $ $ $ utils/digikam_debug.cpp ) -if(MARBLE_FOUND) +if(Marble_FOUND) set(DIGIKAMCORE_OBJECTS ${DIGIKAMCORE_OBJECTS} $ $ $ ) endif() if(KF5Sane_FOUND) set(DIGIKAMCORE_OBJECTS ${DIGIKAMCORE_OBJECTS} $ ) endif() if(FLEX_FOUND AND BISON_FOUND AND KF5ThreadWeaver_FOUND) set(DIGIKAMCORE_OBJECTS ${DIGIKAMCORE_OBJECTS} $ ) endif() -if(LIBXML2_FOUND AND LIBXSLT_FOUND) +if(LibXml2_FOUND AND LibXslt_FOUND) set(DIGIKAMCORE_OBJECTS ${DIGIKAMCORE_OBJECTS} $ ) endif() if(ENABLE_MEDIAPLAYER) set(DIGIKAMCORE_OBJECTS ${DIGIKAMCORE_OBJECTS} $ ) endif() include_directories($ $ $ $ $ $ $ $ $ $ $ $ $) if(KF5KIO_FOUND) include_directories($) endif() if(HAVE_OPENGL) include_directories($) endif() if(KF5Kipi_FOUND) include_directories($) endif() -if(GPHOTO2_FOUND) +if(Gphoto2_FOUND) include_directories(${GPHOTO2_INCLUDE_DIRS}) endif() add_library(digikamcore SHARED ${DIGIKAMCORE_OBJECTS} ) add_dependencies(digikamcore digikam-gitversion) generate_export_header(digikamcore BASE_NAME digikam EXPORT_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/utils/digikam_core_export.h") target_link_libraries(digikamcore PUBLIC Qt5::Core Qt5::Gui Qt5::Xml Qt5::Widgets Qt5::Sql Qt5::WebKitWidgets Qt5::PrintSupport Qt5::Concurrent KF5::Solid KF5::WindowSystem KF5::ConfigGui KF5::CoreAddons KF5::Service KF5::XmlGui KF5::I18n # Required by CImg which use pthread internally. ${CMAKE_THREAD_LIBS_INIT} ${LCMS2_LIBRARIES} # filters ${TIFF_LIBRARIES} PNG::PNG ${EXIV2_LIBRARIES} libdng libraw ) if(ENABLE_DBUS) target_link_libraries(digikamcore PUBLIC Qt5::DBus) endif() if(KF5IconThemes_FOUND) target_link_libraries(digikamcore PUBLIC KF5::IconThemes) endif() if(KF5KIO_FOUND) target_link_libraries(digikamcore PUBLIC KF5::KIOWidgets) endif() if(KF5Kipi_FOUND) target_link_libraries(digikamcore PUBLIC KF5::Kipi) endif() if(KF5Notifications_FOUND) target_link_libraries(digikamcore PUBLIC KF5::Notifications) endif() if(KF5NotifyConfig_FOUND) target_link_libraries(digikamcore PUBLIC KF5::NotifyConfig) endif() -if(MARBLE_FOUND) +if(Marble_FOUND) target_link_libraries(digikamcore PUBLIC ${MARBLE_LIBRARIES}) endif() if(X11_FOUND) target_link_libraries(digikamcore PUBLIC Qt5::X11Extras ${X11_LIBRARIES}) endif() -if(JASPER_FOUND) +if(Jasper_FOUND) target_link_libraries(digikamcore PUBLIC ${JASPER_LIBRARIES}) endif() # LibLqr-1 library rules for content-aware filter -if(LQR-1_FOUND) +if(Lqr-1_FOUND) target_link_libraries(digikamcore PRIVATE ${LQR-1_LIBRARIES}) endif() -if(LENSFUN_FOUND) +if(LensFun_FOUND) target_include_directories(digikamcore PUBLIC ${LENSFUN_INCLUDE_DIRS}) target_link_libraries(digikamcore PUBLIC ${LENSFUN_LIBRARIES}) endif() # for nrfilter if(OpenCV_FOUND) target_link_libraries(digikamcore PRIVATE ${OpenCV_LIBRARIES}) endif() if(KF5FileMetaData_FOUND) target_link_libraries(digikamcore PUBLIC baloowrap) endif() if(HAVE_OPENGL) target_link_libraries(digikamcore PUBLIC Qt5::OpenGL ${OPENGL_LIBRARIES} ) endif() if(KF5Sane_FOUND) target_link_libraries(digikamcore PUBLIC KF5::Sane) endif() if(KF5AkonadiContact_FOUND) target_link_libraries(digikamcore PUBLIC KF5::AkonadiContact) endif() if(KF5CalendarCore_FOUND) target_link_libraries(digikamcore PUBLIC KF5::CalendarCore) endif() if(FLEX_FOUND AND BISON_FOUND AND KF5ThreadWeaver_FOUND) target_link_libraries(digikamcore PUBLIC KF5::ThreadWeaver) endif() -if(LIBXML2_FOUND AND LIBXSLT_FOUND) +if(LibXml2_FOUND AND LibXslt_FOUND) target_link_libraries(digikamcore PUBLIC ${LIBXSLT_EXSLT_LIBRARIES} ${LIBXSLT_LIBRARIES} ${LIBXML2_LIBRARIES}) endif() if(APPLE) target_link_libraries(digikamcore PUBLIC /System/Library/Frameworks/AppKit.framework) endif() if(WIN32) target_link_libraries(digikamcore PUBLIC wsock32 ws2_32) endif() if(ENABLE_MEDIAPLAYER) target_link_libraries(digikamcore PUBLIC ${QTAV_LIBRARIES}) endif() set_target_properties(digikamcore PROPERTIES VERSION ${DIGIKAM_VERSION_SHORT} SOVERSION ${DIGIKAM_VERSION_SHORT}) install(TARGETS digikamcore ${INSTALL_TARGETS_DEFAULT_ARGS}) ########################## digiKam GUI sources ############################# if(ENABLE_DBUS) qt5_add_dbus_adaptor(digikamadaptor_SRCS main/org.kde.digikam.xml main/digikamapp.h Digikam::DigikamApp) endif() set(libdigikamgui_SRCS main/digikamapp.cpp date/dpopupframe.cpp date/ddateedit.cpp date/ddatetable.cpp date/ddatetable_p.cpp date/ddatepicker.cpp date/ddatepicker_p.cpp date/ddatetimeedit.cpp date/ddatepickerpopup.cpp date/datefolderview.cpp date/monthwidget.cpp date/timelinewidget.cpp dragdrop/importdragdrop.cpp dragdrop/albumdragdrop.cpp dragdrop/ddragobjects.cpp dragdrop/imagedragdrop.cpp dragdrop/tagdragdrop.cpp filters/filtersidebarwidget.cpp filters/tagfilterview.cpp items/digikamimageview.cpp items/digikamimageview_p.cpp items/digikamimagedelegate.cpp items/imagecategorizedview.cpp items/imagecategorydrawer.cpp items/imagedelegate.cpp items/imagethumbnailbar.cpp items/imagethumbnaildelegate.cpp items/imageviewutilities.cpp items/digikamimagefacedelegate.cpp items/overlays/assignnameoverlay.cpp items/overlays/facerejectionoverlay.cpp items/overlays/groupindicatoroverlay.cpp items/overlays/imagefsoverlay.cpp items/overlays/imageratingoverlay.cpp items/overlays/imagerotationoverlay.cpp items/overlays/imagecoordinatesoverlay.cpp items/overlays/imageselectionoverlay.cpp utils/contextmenuhelper.cpp utils/tooltipfiller.cpp utils/searchmodificationhelper.cpp utils/editablesearchtreeview.cpp utils/sidebarwidget.cpp utils/slideshowbuilder.cpp utils/digikammodelcollection.cpp utils/digikam_debug.cpp utils/componentsinfo.cpp views/tableview/tableview.cpp views/tableview/tableview_treeview.cpp views/tableview/tableview_treeview_delegate.cpp views/tableview/tableview_column_configuration_dialog.cpp views/tableview/tableview_model.cpp views/tableview/tableview_columns.cpp views/tableview/tableview_column_audiovideo.cpp views/tableview/tableview_column_file.cpp views/tableview/tableview_column_geo.cpp views/tableview/tableview_column_digikam.cpp views/tableview/tableview_column_item.cpp views/tableview/tableview_column_photo.cpp views/tableview/tableview_column_thumbnail.cpp views/tableview/tableview_columnfactory.cpp views/tableview/tableview_selection_model_syncer.cpp views/imagepreviewviewitem.cpp views/imagepreviewview.cpp views/welcomepageview.cpp views/leftsidebarwidgets.cpp views/digikamview.cpp views/trashview.cpp views/stackedview.cpp ${digikamadaptor_SRCS} ) -if(${MARBLE_FOUND}) +if(${Marble_FOUND}) set(libdigikamgui_SRCS ${libdigikamgui_SRCS} views/mapwidgetview.cpp ) endif() add_library(digikamgui_src OBJECT ${libdigikamgui_SRCS} ) ######################### digiKam GUI objects ############################ set(DIGIKAM_OBJECTS $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ ) if(KF5Kipi_FOUND) set(DIGIKAM_OBJECTS ${DIGIKAM_OBJECTS} $ ) endif() -if(${MARBLE_FOUND}) +if(${Marble_FOUND}) set(DIGIKAM_OBJECTS ${DIGIKAM_OBJECTS} $ $ ) endif() #################### Digikam GUI shared Lib ################################ add_library(digikamgui SHARED ${DIGIKAM_OBJECTS} ) target_link_libraries(digikamgui PUBLIC digikamdatabase digikamcore Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Sql Qt5::WebKitWidgets Qt5::PrintSupport KF5::Solid KF5::Service KF5::WindowSystem KF5::I18n ${OpenCV_LIBRARIES} ) if(ENABLE_DBUS) target_link_libraries(digikamgui PUBLIC Qt5::DBus) endif() if(KF5IconThemes_FOUND) target_link_libraries(digikamgui PUBLIC KF5::IconThemes) endif() if(KF5KIO_FOUND) target_link_libraries(digikamgui PUBLIC KF5::KIOWidgets) endif() if(KF5Kipi_FOUND) target_link_libraries(digikamgui PUBLIC KF5::Kipi) endif() -if(${MARBLE_FOUND}) +if(${Marble_FOUND}) target_link_libraries(digikamgui PUBLIC ${MARBLE_LIBRARIES}) endif() if(APPLE) target_link_libraries(digikamgui PRIVATE /System/Library/Frameworks/AppKit.framework) endif() if(HAVE_OPENGL) target_link_libraries(digikamgui PUBLIC Qt5::OpenGL ${OPENGL_LIBRARIES} ) endif() if(NOT WIN32) # To link under Solaris (see bug #274484) target_link_libraries(digikamgui PUBLIC ${MATH_LIBRARY}) endif() if(WIN32) set_target_properties(digikamgui PROPERTIES COMPILE_FLAGS -DJPEG_STATIC) endif() if(CMAKE_SYSTEM_NAME STREQUAL FreeBSD) target_link_libraries(digikamgui PRIVATE ${KVM_LIBRARY}) endif() -if(GPHOTO2_FOUND) +if(Gphoto2_FOUND) # See bug #258931: libgphoto2 library must be the last arg for linker. # See bug #268267 : digiKam need to be linked to libusb to prevent crash # at gphoto2 init if opencv is linked with libdc1394. Libusb linking rules are # add to gphoto2 linking rules by Gphoto2 cmake detection script. target_link_libraries(digikamgui PUBLIC ${GPHOTO2_LIBRARIES}) endif() set_target_properties(digikamgui PROPERTIES VERSION ${DIGIKAM_VERSION_SHORT} SOVERSION ${DIGIKAM_VERSION_SHORT}) install(TARGETS digikamgui ${INSTALL_TARGETS_DEFAULT_ARGS}) #################### digiKam Executable #################################### set(digikam_SRCS main/main.cpp ) # this is only required by Win & OSX file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../data/icons/apps/*-apps-digikam.png") ecm_add_app_icon(digikam_SRCS ICONS ${ICONS_SRCS}) add_executable(digikam ${digikam_SRCS}) add_dependencies(digikam digikam-gitversion) # To fill plist XML file for OSX ############ set(MACOSX_APP_NAME_STRING "digikam") set(MACOSX_APP_DESCRIPTION "Advanced digital photo management application") set(MACOSX_BUNDLE_LONG_VERSION_STRING ${DIGIKAM_VERSION_STRING}) set(MACOSX_BUNDLE_SHORT_VERSION_STRING ${DIGIKAM_VERSION_SHORT}) set(MACOSX_BUNDLE_BUNDLE_VERSION ${DIGIKAM_VERSION_STRING}) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/templates/Info.plist.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/Info.plist) set_target_properties(digikam PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_BINARY_DIR}/Info.plist) target_link_libraries(digikam PUBLIC digikamcore digikamgui libdng Qt5::Core Qt5::Gui Qt5::Widgets KF5::WindowSystem KF5::I18n ) if(ENABLE_DBUS) target_link_libraries(digikam PUBLIC Qt5::DBus) endif() if(KF5IconThemes_FOUND) target_link_libraries(digikam PUBLIC KF5::IconThemes) endif() if(KF5KIO_FOUND) target_link_libraries(digikam PUBLIC KF5::KIOWidgets) endif() install(TARGETS digikam ${INSTALL_TARGETS_DEFAULT_ARGS}) # Others Files to install ####################################################### install(PROGRAMS main/org.kde.digikam.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) install(FILES main/org.kde.digikam.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) install(FILES main/digikamui5.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/digikam) install(FILES main/digikam.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR}) diff --git a/cmake/modules/FindEigen3.cmake b/cmake/modules/FindEigen3.cmake index f84e633e64..13ea94c0d8 100644 --- a/cmake/modules/FindEigen3.cmake +++ b/cmake/modules/FindEigen3.cmake @@ -1,81 +1,81 @@ # - Try to find Eigen3 lib # # This module supports requiring a minimum version, e.g. you can do # find_package(Eigen3 3.1.2) # to require version 3.1.2 or newer of Eigen3. # # Once done this will define # -# EIGEN3_FOUND - system has eigen lib with correct version +# Eigen3_FOUND - system has eigen lib with correct version # EIGEN3_INCLUDE_DIR - the eigen include directory # EIGEN3_VERSION - eigen version # Copyright (c) 2006, 2007 Montel Laurent, # Copyright (c) 2008, 2009 Gael Guennebaud, # Copyright (c) 2009 Benoit Jacob # Redistribution and use is allowed according to the terms of the 2-clause BSD license. if(NOT Eigen3_FIND_VERSION) if(NOT Eigen3_FIND_VERSION_MAJOR) set(Eigen3_FIND_VERSION_MAJOR 2) endif(NOT Eigen3_FIND_VERSION_MAJOR) if(NOT Eigen3_FIND_VERSION_MINOR) set(Eigen3_FIND_VERSION_MINOR 91) endif(NOT Eigen3_FIND_VERSION_MINOR) if(NOT Eigen3_FIND_VERSION_PATCH) set(Eigen3_FIND_VERSION_PATCH 0) endif(NOT Eigen3_FIND_VERSION_PATCH) set(Eigen3_FIND_VERSION "${Eigen3_FIND_VERSION_MAJOR}.${Eigen3_FIND_VERSION_MINOR}.${Eigen3_FIND_VERSION_PATCH}") endif(NOT Eigen3_FIND_VERSION) macro(_eigen3_check_version) file(READ "${EIGEN3_INCLUDE_DIR}/Eigen/src/Core/util/Macros.h" _eigen3_version_header) string(REGEX MATCH "define[ \t]+EIGEN_WORLD_VERSION[ \t]+([0-9]+)" _eigen3_world_version_match "${_eigen3_version_header}") set(EIGEN3_WORLD_VERSION "${CMAKE_MATCH_1}") string(REGEX MATCH "define[ \t]+EIGEN_MAJOR_VERSION[ \t]+([0-9]+)" _eigen3_major_version_match "${_eigen3_version_header}") set(EIGEN3_MAJOR_VERSION "${CMAKE_MATCH_1}") string(REGEX MATCH "define[ \t]+EIGEN_MINOR_VERSION[ \t]+([0-9]+)" _eigen3_minor_version_match "${_eigen3_version_header}") set(EIGEN3_MINOR_VERSION "${CMAKE_MATCH_1}") set(EIGEN3_VERSION ${EIGEN3_WORLD_VERSION}.${EIGEN3_MAJOR_VERSION}.${EIGEN3_MINOR_VERSION}) if(${EIGEN3_VERSION} VERSION_LESS ${Eigen3_FIND_VERSION}) set(EIGEN3_VERSION_OK FALSE) else(${EIGEN3_VERSION} VERSION_LESS ${Eigen3_FIND_VERSION}) set(EIGEN3_VERSION_OK TRUE) endif(${EIGEN3_VERSION} VERSION_LESS ${Eigen3_FIND_VERSION}) if(NOT EIGEN3_VERSION_OK) message(STATUS "Eigen3 version ${EIGEN3_VERSION} found in ${EIGEN3_INCLUDE_DIR}, " "but at least version ${Eigen3_FIND_VERSION} is required") endif(NOT EIGEN3_VERSION_OK) endmacro(_eigen3_check_version) if (EIGEN3_INCLUDE_DIR) # in cache already _eigen3_check_version() - set(EIGEN3_FOUND ${EIGEN3_VERSION_OK}) + set(Eigen3_FOUND ${EIGEN3_VERSION_OK}) else (EIGEN3_INCLUDE_DIR) find_path(EIGEN3_INCLUDE_DIR NAMES signature_of_eigen3_matrix_library PATHS ${CMAKE_INSTALL_PREFIX}/include ${KDE4_INCLUDE_DIR} PATH_SUFFIXES eigen3 eigen ) if(EIGEN3_INCLUDE_DIR) _eigen3_check_version() endif(EIGEN3_INCLUDE_DIR) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Eigen3 DEFAULT_MSG EIGEN3_INCLUDE_DIR EIGEN3_VERSION_OK) mark_as_advanced(EIGEN3_INCLUDE_DIR) endif(EIGEN3_INCLUDE_DIR) diff --git a/cmake/modules/FindExiv2.cmake b/cmake/modules/FindExiv2.cmake index ec168e87b3..1e971a3140 100644 --- a/cmake/modules/FindExiv2.cmake +++ b/cmake/modules/FindExiv2.cmake @@ -1,76 +1,76 @@ # - Try to find the Exiv2 library # # EXIV2_MIN_VERSION - You can set this variable to the minimum version you need # before doing FIND_PACKAGE(Exiv2). The default is 0.15. # # Once done this will define # -# EXIV2_FOUND - system has libexiv2 +# Exiv2_FOUND - system has libexiv2 # EXIV2_INCLUDE_DIR - the libexiv2 include directory # EXIV2_LIBRARIES - Link these to use libexiv2 # EXIV2_DEFINITIONS - Compiler switches required for using libexiv2 # # The minimum required version of Exiv2 can be specified using the # standard syntax, e.g. find_package(Exiv2 0.17) # # For compatibility, also the variable EXIV2_MIN_VERSION can be set to the minimum version # you need before doing FIND_PACKAGE(Exiv2). The default is 0.15. # # Copyright (c) 2010, Alexander Neundorf, # Copyright (c) 2008-2017, Gilles Caulier, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # Support EXIV2_MIN_VERSION for compatibility: if(NOT Exiv2_FIND_VERSION) set(Exiv2_FIND_VERSION "${EXIV2_MIN_VERSION}") endif(NOT Exiv2_FIND_VERSION) # the minimum version of exiv2 we require if(NOT Exiv2_FIND_VERSION) set(Exiv2_FIND_VERSION "0.15") endif(NOT Exiv2_FIND_VERSION) if (NOT WIN32) # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls find_package(PkgConfig) pkg_check_modules(PC_EXIV2 QUIET exiv2) set(EXIV2_DEFINITIONS ${PC_EXIV2_CFLAGS_OTHER}) endif (NOT WIN32) find_path(EXIV2_INCLUDE_DIR NAMES exiv2/exif.hpp HINTS ${PC_EXIV2_INCLUDEDIR} ${PC_EXIV2_INCLUDE_DIRS} ) find_library(EXIV2_LIBRARY NAMES exiv2 libexiv2 HINTS ${PC_EXIV2_LIBDIR} ${PC_EXIV2_LIBRARY_DIRS} ) # Get the version number from exiv2/version.hpp and store it in the cache: if(EXIV2_INCLUDE_DIR AND NOT EXIV2_VERSION) file(READ ${EXIV2_INCLUDE_DIR}/exiv2/version.hpp EXIV2_VERSION_CONTENT) string(REGEX MATCH "#define EXIV2_MAJOR_VERSION +\\( *([0-9]+) *\\)" _dummy "${EXIV2_VERSION_CONTENT}") set(EXIV2_VERSION_MAJOR "${CMAKE_MATCH_1}") string(REGEX MATCH "#define EXIV2_MINOR_VERSION +\\( *([0-9]+) *\\)" _dummy "${EXIV2_VERSION_CONTENT}") set(EXIV2_VERSION_MINOR "${CMAKE_MATCH_1}") string(REGEX MATCH "#define EXIV2_PATCH_VERSION +\\( *([0-9]+) *\\)" _dummy "${EXIV2_VERSION_CONTENT}") set(EXIV2_VERSION_PATCH "${CMAKE_MATCH_1}") set(EXIV2_VERSION "${EXIV2_VERSION_MAJOR}.${EXIV2_VERSION_MINOR}.${EXIV2_VERSION_PATCH}" CACHE STRING "Version number of Exiv2" FORCE) endif(EXIV2_INCLUDE_DIR AND NOT EXIV2_VERSION) set(EXIV2_LIBRARIES "${EXIV2_LIBRARY}") include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Exiv2 REQUIRED_VARS EXIV2_LIBRARY EXIV2_INCLUDE_DIR VERSION_VAR EXIV2_VERSION) mark_as_advanced(EXIV2_INCLUDE_DIR EXIV2_LIBRARY) diff --git a/cmake/modules/FindGphoto2.cmake b/cmake/modules/FindGphoto2.cmake index 2f3c449240..6533f0a273 100644 --- a/cmake/modules/FindGphoto2.cmake +++ b/cmake/modules/FindGphoto2.cmake @@ -1,81 +1,81 @@ # Cmake macro to detect gphoto2 libraries # # This module defines -# GPHOTO2_FOUND - True if libgphoto2 is detected. +# Gphoto2_FOUND - True if libgphoto2 is detected. # GPHOTO2_INCLUDE_DIRS - Path to libgphoto2 header files. # GPHOTO2_LIBRARIES - Libraries to link against to use libgphoto2. # GPHOTO2_VERSION_STRING - e.g. "2.4.14" # GPHOTO2_VERSION_MAJOR - e.g. "2" # GPHOTO2_VERSION_MINOR - e.g. "4" # GPHOTO2_VERSION_PATCH - e.g. "14" # # Copyright (c) 2006-2007 Laurent Montel # Copyright (c) 2011-2016 Gilles Caulier # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # set(GPHOTO2_FIND_REQUIRED ${Gphoto2_FIND_REQUIRED}) find_path(GPHOTO2_INCLUDE_DIRS gphoto2/gphoto2.h) mark_as_advanced(GPHOTO2_INCLUDE_DIRS) set(GPHOTO2_NAMES ${GPHOTO2_NAMES} gphoto2 libgphoto2) set(GPHOTO2_PORT_NAMES ${GPHOTO2_PORT_NAMES} gphoto2_port libgphoto2_port) find_library(GPHOTO2_LIBRARY NAMES ${GPHOTO2_NAMES}) find_library(GPHOTO2_PORT_LIBRARY NAMES ${GPHOTO2_PORT_NAMES}) mark_as_advanced(GPHOTO2_LIBRARY) mark_as_advanced(GPHOTO2_PORT_LIBRARY) # Detect libgphoto2 version find_package(PkgConfig) pkg_check_modules(PC_GPHOTO2 QUIET libgphoto2) -if(PC_GPHOTO2_FOUND) +if(PC_Gphoto2_FOUND) set(GPHOTO2_VERSION_STRING "${PC_GPHOTO2_VERSION}") endif() -# handle the QUIETLY and REQUIRED arguments and set GPHOTO2_FOUND to TRUE if +# handle the QUIETLY and REQUIRED arguments and set Gphoto2_FOUND to TRUE if # all listed variables are TRUE include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(GPHOTO2 DEFAULT_MSG +find_package_handle_standard_args(Gphoto2 DEFAULT_MSG GPHOTO2_LIBRARY GPHOTO2_INCLUDE_DIRS) -if(GPHOTO2_FOUND) +if(Gphoto2_FOUND) set(GPHOTO2_INCLUDE_DIRS ${GPHOTO2_INCLUDE_DIRS}/gphoto2) set(GPHOTO2_LIBRARIES ${GPHOTO2_LIBRARY} ${GPHOTO2_PORT_LIBRARY}) # See bug #268267: digiKam need to be linked to libusb to prevent crash # at gphoto2 init if opencv is linked with libdc1394. # # libgphoto2 dynamically loads and unloads usb library # without calling any cleanup functions (since they are absent from libusb-0.1). # This leaves usb event handling threads running with invalid callback and return addresses, # which causes a crash after any usb event is generated. # libusb1 backend does correctly call exit function, but ATM it crashes anyway. # Workaround is to link against libusb so that it wouldn't get unloaded. find_library(USB1_LIBRARY NAMES usb-1.0 libusb-1.0) mark_as_advanced(USB1_LIBRARY) if(USB1_LIBRARY) set(GPHOTO2_LIBRARIES ${GPHOTO2_LIBRARIES} ${USB1_LIBRARY}) endif() endif() -message(STATUS "libgphoto2 found : ${GPHOTO2_FOUND}") +message(STATUS "libgphoto2 found : ${Gphoto2_FOUND}") message(STATUS "libgphoto2 version : ${GPHOTO2_VERSION_STRING}") message(STATUS "libgphoto2 includes : ${GPHOTO2_INCLUDE_DIRS}") message(STATUS "libgphoto2 libraries: ${GPHOTO2_LIBRARIES}") diff --git a/cmake/modules/FindLensFun.cmake b/cmake/modules/FindLensFun.cmake index d25fb050ec..04bb0950d3 100644 --- a/cmake/modules/FindLensFun.cmake +++ b/cmake/modules/FindLensFun.cmake @@ -1,78 +1,78 @@ # - Try to find lensfun # Once done this will define # -# LENSFUN_FOUND - system has lensfun +# LensFun_FOUND - system has lensfun # LENSFUN_INCLUDE_DIRS - the lensfun include directory # LENSFUN_LIBRARIES - Link these to use lensfun # LENSFUN_DEFINITIONS - Compiler switches required for using lensfun # LENSFUN_VERSION - library version # # Copyright (c) 2008 Adrian Schroeter # Copyright (c) 2012 Pino Toscano # Copyright (c) 2012 Ananta Palani # Copyright (c) 2012 Caulier Gilles # # Redistribution and use is allowed according to the terms of the New # BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # IF(LENSFUN_LIBRARIES AND LENSFUN_INCLUDE_DIRS AND LENSFUN_DEFINITIONS AND LENSFUN_VERSION) # in cache already - SET(LENSFUN_FOUND TRUE) + SET(LensFun_FOUND TRUE) ELSE() # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls IF (NOT WIN32) FIND_PACKAGE(PkgConfig) IF (PKG_CONFIG_FOUND) IF (LensFun_FIND_VERSION) SET(version_string ">=${LensFun_FIND_VERSION}") ENDIF() PKG_CHECK_MODULES(PC_LENSFUN lensfun${version_string}) ENDIF () ENDIF (NOT WIN32) FIND_PATH(LENSFUN_INCLUDE_DIRS lensfun.h HINTS ${PC_LENSFUN_INCLUDE_DIRS} PATH_SUFFIXES lensfun ) FIND_LIBRARY(LENSFUN_LIBRARIES NAMES lensfun liblensfun HINTS ${PC_LENSFUN_LIBRARY_DIRS} ) SET(LENSFUN_VERSION "${PC_LENSFUN_VERSION}") SET(LENSFUN_DEFINITIONS ${PC_LENSFUN_CFLAGS_OTHER}) IF (LENSFUN_INCLUDE_DIRS) FILE(READ ${LENSFUN_INCLUDE_DIRS}/lensfun.h LENSFUN_VERSION_CONTENT) STRING(REGEX MATCH "#define[ \t]+LF_VERSION_MAJOR[ \t]+[0-9]*[\r\n]*.*#define[ \t]+LF_VERSION_MINOR[ \t]+[0-9]*[\r\n]*.*#define[ \t]+LF_VERSION_MICRO[ \t]+[0-9]*[\r\n]*.*#define[ \t]+LF_VERSION_BUGFIX[ \t]+[0-9]*" LENSFUN_VERSION_MATCH ${LENSFUN_VERSION_CONTENT}) IF (LENSFUN_VERSION_MATCH) STRING(REGEX REPLACE "#define[ \t]+LF_VERSION_MAJOR[ \t]+([0-9]*)[\r\n]*.*#define[ \t]+LF_VERSION_MINOR[ \t]+([0-9]*)[\r\n]*.*#define[ \t]+LF_VERSION_MICRO[ \t]+([0-9]*)[\r\n]*.*#define[ \t]+LF_VERSION_BUGFIX[ \t]+([0-9]*)" "\\1.\\2.\\3.\\4" LENSFUN_VERSION ${LENSFUN_VERSION_MATCH}) ENDIF (LENSFUN_VERSION_MATCH) ENDIF (LENSFUN_INCLUDE_DIRS) INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(LensFun REQUIRED_VARS LENSFUN_INCLUDE_DIRS LENSFUN_LIBRARIES VERSION_VAR LENSFUN_VERSION ) # show the variables only in the advanced view MARK_AS_ADVANCED(LENSFUN_INCLUDE_DIRS LENSFUN_LIBRARIES LENSFUN_DEFINITIONS LENSFUN_VERSION) ENDIF() diff --git a/cmake/modules/FindLqr-1.cmake b/cmake/modules/FindLqr-1.cmake index 8d36d84207..f31b17556d 100644 --- a/cmake/modules/FindLqr-1.cmake +++ b/cmake/modules/FindLqr-1.cmake @@ -1,56 +1,56 @@ # Try to find the lqr-1 library # Once done this will define # -# LQR-1_FOUND - system has the lqr-1 library +# Lqr-1_FOUND - system has the lqr-1 library # LQR-1_INCLUDE_DIRS - the lqr-1 library include directory # LQR-1_LIBRARIES - Link these to use the lqr-1 library # # Copyright (c) 2009 Pino Toscano # # Redistribution and use is allowed according to the terms of the New # BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # IF (LQR-1_LIBRARIES AND LQR-1_INCLUDE_DIRS) # in cache already - SET(LQR-1_FOUND TRUE) + SET(Lqr-1_FOUND TRUE) ELSE (LQR-1_LIBRARIES AND LQR-1_INCLUDE_DIRS) IF (NOT WIN32) INCLUDE(FindPkgConfig) pkg_check_modules(LQR-1 lqr-1) ENDIF (NOT WIN32) IF (LQR-1_LIBRARIES AND LQR-1_INCLUDE_DIRS) FIND_PACKAGE(GLIB2) IF (GLIB2_FOUND) INCLUDE(CheckCXXSourceCompiles) SET(CMAKE_REQUIRED_INCLUDES "${LQR-1_INCLUDE_DIR}" "${GLIB2_INCLUDE_DIR}") CHECK_CXX_SOURCE_COMPILES(" #include int main() { LqrImageType t = LQR_RGB_IMAGE; return 0; } " HAVE_LQR_0_4) IF (HAVE_LQR_0_4) INCLUDE_DIRECTORIES(${GLIB2_INCLUDE_DIR}) - SET(LQR-1_FOUND TRUE) + SET(Lqr-1_FOUND TRUE) ENDIF (HAVE_LQR_0_4) ENDIF (GLIB2_FOUND) ENDIF (LQR-1_LIBRARIES AND LQR-1_INCLUDE_DIRS) FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lqr-1 DEFAULT_MSG LQR-1_INCLUDE_DIRS LQR-1_LIBRARIES) # show the LQR-1_INCLUDE_DIRS and LQR-1_LIBRARIES variables only in the advanced view MARK_AS_ADVANCED(LQR-1_INCLUDE_DIRS LQR-1_LIBRARIES) ENDIF (LQR-1_LIBRARIES AND LQR-1_INCLUDE_DIRS) diff --git a/cmake/modules/FindMarble.cmake b/cmake/modules/FindMarble.cmake index 1f3e905fd7..65857b27a2 100644 --- a/cmake/modules/FindMarble.cmake +++ b/cmake/modules/FindMarble.cmake @@ -1,31 +1,31 @@ # - Try to find the Marble Library # Once done this will define # -# MARBLE_FOUND - system has Marble +# Marble_FOUND - system has Marble # MARBLE_INCLUDE_DIR - the Marble include directory # MARBLE_LIBRARIES - the marble core libraries # ASTRO_LIBRARIES - the marble astro libraries # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # IF ( MARBLE_INCLUDE_DIR AND MARBLE_LIBRARIES ) # in cache already SET( MARBLE_FIND_QUIETLY TRUE ) ENDIF ( MARBLE_INCLUDE_DIR AND MARBLE_LIBRARIES ) FIND_PATH( MARBLE_INCLUDE_DIR NAMES marble/MarbleModel.h ) FIND_LIBRARY( MARBLE_LIBRARIES NAMES marblewidget-qt5 marblewidget-qt5d ) FIND_LIBRARY( ASTRO_LIBRARIES NAMES astro astrod ) INCLUDE( FindPackageHandleStandardArgs ) -FIND_PACKAGE_HANDLE_STANDARD_ARGS( marble DEFAULT_MSG MARBLE_INCLUDE_DIR MARBLE_LIBRARIES ASTRO_LIBRARIES) +FIND_PACKAGE_HANDLE_STANDARD_ARGS( Marble DEFAULT_MSG MARBLE_INCLUDE_DIR MARBLE_LIBRARIES ASTRO_LIBRARIES) -MESSAGE(STATUS "MARBLE_FOUND = ${MARBLE_FOUND}") +MESSAGE(STATUS "Marble_FOUND = ${Marble_FOUND}") MESSAGE(STATUS "MARBLE_INCLUDE_DIR = ${MARBLE_INCLUDE_DIR}") MESSAGE(STATUS "MARBLE_LIBRARIES = ${MARBLE_LIBRARIES}") MESSAGE(STATUS "ASTRO_LIBRARIES = ${ASTRO_LIBRARIES}") diff --git a/cmake/modules/FindQtAV.cmake b/cmake/modules/FindQtAV.cmake index a50f30b948..71a51eb10d 100644 --- a/cmake/modules/FindQtAV.cmake +++ b/cmake/modules/FindQtAV.cmake @@ -1,137 +1,137 @@ # - Try to find the QtAV library # # Once done this will define # -# QTAV_FOUND - The system has libqtav +# QtAV_FOUND - The system has libqtav # QTAV_INCLUDE_DIRS - The libqtav include directory # QTAV_LIBRARIES - Link these to use libqtav # QTAV_MAJOR_VERSION - The major value of QtAV version ID defined in QtAV/version.h as "1". # QTAV_MINOR_VERSION - The minor value of QtAV version ID defined in QtAV/version.h as "12". # QTAV_PATCH_VERSION - The patch value of QtAV version ID defined in QtAV/version.h as "0". # QTAV_VERSION_STRING - Version string e.g. "1.12.0" # # Copyright (c) 2016-2017, Gilles Caulier, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. find_package(Qt5 QUIET REQUIRED NO_MODULE COMPONENTS Core ) Message(STATUS "QtAV search path: ${_qt5_install_prefix}") if (NOT APPLE) find_path(QTAV_CORE_INCLUDE_DIR NAMES QtAV.h HINTS ${_qt5_install_prefix} # For MXE ${_qt5_install_prefix}/../qt5/include # For Mageia ${_qt5_install_prefix}/../../include/qt5 # For Suse ${_qt5_install_prefix}/../../../include/x86_64-linux-gnu/qt5 # For Debian ${_qt5_install_prefix}/../../../include/i386-linux-gnu/qt5 # For Mint32 (possibly all 32 Debian) ${_qt5_install_prefix}/../../include/qt # For Arch PATH_SUFFIXES QtAV ) find_path(QTAV_WIDGETS_INCLUDE_DIR NAMES QtAVWidgets.h HINTS ${_qt5_install_prefix} # For MXE ${_qt5_install_prefix}/../qt5/include # For Mageia ${_qt5_install_prefix}/../../include/qt5 # For Suse ${_qt5_install_prefix}/../../../include/x86_64-linux-gnu/qt5 # For Debian ${_qt5_install_prefix}/../../../include/i386-linux-gnu/qt5 # For Mint32 (possibly all 32 Debian) ${_qt5_install_prefix}/../../include/qt # For Arch PATH_SUFFIXES QtAVWidgets ) find_library(QTAV_CORE_LIBRARY NAMES QtAV QtAV1 libQtAV libQtAV1 HINTS ${_qt5_install_prefix}/../ ) find_library(QTAV_WIDGETS_LIBRARY NAMES QtAVWidgets QtAVWidgets1 libQtAVWidgets libQtAVWidgets1 HINTS ${_qt5_install_prefix}/../ ) set(QTAV_INCLUDE_DIRS "${QTAV_CORE_INCLUDE_DIR} ${QTAV_WIDGETS_INCLUDE_DIR}") set(QTAV_LIBRARIES ${QTAV_CORE_LIBRARY} ${QTAV_WIDGETS_LIBRARY}) else() find_path(QTAV_CORE_INCLUDE_DIR NAMES QtAV/QtAV.h HINTS ${_qt5_install_prefix} ${_qt5_install_prefix}/../../include PATH_SUFFIXES QtAV ) find_path(QTAV_WIDGETS_INCLUDE_DIR NAMES QtAVWidgets/QtAVWidgets.h HINTS ${_qt5_install_prefix} ${_qt5_install_prefix}/../../include PATH_SUFFIXES QtAVWidgets ) if (QTAV_CORE_INCLUDE_DIR AND QTAV_WIDGETS_INCLUDE_DIR) set(QTAV_INCLUDE_DIRS "${QTAV_CORE_INCLUDE_DIR};${QTAV_WIDGETS_INCLUDE_DIR}") set(QTAV_LIBRARIES "${_qt5_install_prefix}/../QtAV.framework/QtAV;${_qt5_install_prefix}/../QtAVWidgets.framework/QtAVWidgets") else() set(QTAV_INCLUDE_DIRS "${_qt5_install_prefix}/../../include/QtAV;${_qt5_install_prefix}/../../include/QtAVWidgets") set(QTAV_LIBRARIES "${_qt5_install_prefix}/../QtAV.framework/QtAV;${_qt5_install_prefix}/../QtAVWidgets.framework/QtAVWidgets") endif() endif() include(FindPackageHandleStandardArgs) find_package_handle_standard_args(QtAV REQUIRED_VARS QTAV_LIBRARIES QTAV_INCLUDE_DIRS) -if(QTAV_FOUND) +if(QtAV_FOUND) if (NOT APPLE) file(READ ${QTAV_CORE_INCLUDE_DIR}/version.h QTAV_VERSION_CONTENT) else() file(READ ${QTAV_CORE_INCLUDE_DIR}/QtAV/version.h QTAV_VERSION_CONTENT) endif() string(REGEX MATCH "#define QTAV_MAJOR ([0-9]+)" QTAV_MAJOR_MATCH ${QTAV_VERSION_CONTENT}) string(REPLACE "#define QTAV_MAJOR " "" QTAV_MAJOR_VERSION ${QTAV_MAJOR_MATCH}) string(REGEX MATCH "#define QTAV_MINOR ([0-9]+)" QTAV_MINOR_MATCH ${QTAV_VERSION_CONTENT}) string(REPLACE "#define QTAV_MINOR " "" QTAV_MINOR_VERSION ${QTAV_MINOR_MATCH}) string(REGEX MATCH "#define QTAV_PATCH ([0-9]+)" QTAV_PATCH_MATCH ${QTAV_VERSION_CONTENT}) string(REPLACE "#define QTAV_PATCH " "" QTAV_PATCH_VERSION ${QTAV_PATCH_MATCH}) if(NOT QTAV_MAJOR_VERSION STREQUAL "" AND NOT QTAV_MINOR_VERSION STREQUAL "" AND NOT QTAV_PATCH_VERSION STREQUAL "") set(QTAV_VERSION_STRING "${QTAV_MAJOR_VERSION}.${QTAV_MINOR_VERSION}.${QTAV_PATCH_VERSION}") message(STATUS "Found QtAV version ${QTAV_VERSION_STRING}") else() message(STATUS "Found QtAV but failed to find version ${QTAV_LIBRARIES}") set(QTAV_MAJOR_VERSION NOTFOUND) set(QTAV_MINOR_VERSION NOTFOUND) set(QTAV_PATCH_VERSION NOTFOUND) set(QTAV_VERSION_STRING NOTFOUND) endif() endif() mark_as_advanced(QTAV_INCLUDE_DIRS QTAV_LIBRARIES QTAV_VERSION_STRING QTAV_MAJOR_VERSION QTAV_MINOR_VERSION QTAV_PATCH_VERSION) -message(STATUS "QtAV_FOUND = ${QTAV_FOUND}") +message(STATUS "QtAV_FOUND = ${QtAV_FOUND}") message(STATUS "QtAV_INCLUDE_DIR = ${QTAV_INCLUDE_DIRS}") message(STATUS "QtAV_LIBRARIES = ${QTAV_LIBRARIES}") message(STATUS "QtAV_VERSION = ${QTAV_VERSION_STRING}") diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 0ccd117ec5..b88754ed04 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -1,24 +1,24 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. add_subdirectory(icons) add_subdirectory(pics) add_subdirectory(about) add_subdirectory(colorschemes) add_subdirectory(database) add_subdirectory(facesengine) add_subdirectory(geolocation) add_subdirectory(metadata) add_subdirectory(profiles) add_subdirectory(hotplug) add_subdirectory(scripts) add_subdirectory(filters) add_subdirectory(printcreator) add_subdirectory(mediaserver) -if(LIBXML2_FOUND AND LIBXSLT_FOUND) +if(LibXml2_FOUND AND LibXslt_FOUND) add_subdirectory(htmlgallery) endif() diff --git a/libs/database/CMakeLists.txt b/libs/database/CMakeLists.txt index a431a36d7b..a0ccd65a86 100644 --- a/libs/database/CMakeLists.txt +++ b/libs/database/CMakeLists.txt @@ -1,216 +1,216 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # Copyright (c) 2015 by Veaceslav Munteanu, # Copyright (c) 2015 by Mohamed Anwer, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif (POLICY CMP0063) # Boost uses operator names (and, not, ...) string(REPLACE "-fno-operator-names" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") set(libdatabasemodels_SRCS models/imagemodel.cpp models/imagefiltermodel.cpp models/imagefiltermodelpriv.cpp models/imagefiltermodelthreads.cpp models/imagefiltersettings.cpp models/imagelistmodel.cpp models/imagesortsettings.cpp models/imagethumbnailmodel.cpp models/imageversionsmodel.cpp ) set(libdatabasecore_SRCS server/databaseserverstarter.cpp server/databaseservererror.cpp server/databaseserver.cpp engine/dbengineconfigloader.cpp engine/dbengineconfig.cpp engine/dbengineactiontype.cpp engine/dbengineerrorhandler.cpp engine/dbengineguierrorhandler.cpp engine/dbengineparameters.cpp engine/dbenginebackend.cpp engine/dbenginesqlquery.cpp engine/dbengineaccess.cpp tags/tagregion.cpp thumbsdb/thumbsdb.cpp thumbsdb/thumbsdbchemaupdater.cpp thumbsdb/thumbsdbbackend.cpp thumbsdb/thumbsdbaccess.cpp ) set(libdatabaseutils_SRCS utils/dbstatdlg.cpp utils/dbsettingswidget.cpp utils/dbmigrationdlg.cpp utils/dbinfoiface.cpp utils/dio.cpp utils/scancontroller.cpp utils/syncjob.cpp ) set(libdatabase_SRCS collection/collectionscanner.cpp collection/collectionmanager.cpp collection/collectionlocation.cpp collection/collectionscannerhints.cpp coredb/coredb.cpp coredb/coredbsearchxml.cpp coredb/coredbchecker.cpp coredb/coredbcopymanager.cpp coredb/coredbconstants.cpp coredb/coredbtransaction.cpp coredb/coredbschemaupdater.cpp coredb/coredbchangesets.cpp coredb/coredbthumbinfoprovider.cpp coredb/coredboperationgroup.cpp coredb/coredbbackend.cpp coredb/coredbwatch.cpp coredb/coredburl.cpp coredb/coredbaccess.cpp coredb/coredbnamefilter.cpp coredb/coredbdownloadhistory.cpp tags/tagproperties.cpp tags/tagscache.cpp tags/facetags.cpp tags/facetagseditor.cpp tags/facetagsiface.cpp dbjobs/dbjobsthread.cpp dbjobs/dbjob.cpp dbjobs/dbjobinfo.cpp dbjobs/dbjobsmanager.cpp dbjobs/duplicatesprogressobserver.cpp item/imagecomments.cpp item/imageextendedproperties.cpp item/imageinfo.cpp item/imageinfolist.cpp item/imageinfocache.cpp item/imagelister.cpp item/imagelisterreceiver.cpp item/imageposition.cpp item/imagecopyright.cpp item/imagequerybuilder.cpp item/imagescanner.cpp item/imagetagpair.cpp item/imageattributeswatch.cpp imagehistory/imagehistorygraph.cpp imagehistory/imagehistorygraphmodel.cpp ) if(ENABLE_DBUS) set(libdatabase_SRCS ${libdatabase_SRCS} coredb/coredbwatchadaptor.cpp ) endif() -if(MARBLE_FOUND) +if(Marble_FOUND) set(libdatabase_SRCS ${libdatabase_SRCS} item/imagegps.cpp ) endif() # enable exceptions kde_source_files_enable_exceptions(imagehistory/imagehistorygraph.cpp imagehistory/imagehistorygraphmodel.cpp) set(libhaar_SRCS haar/haar.cpp haar/haariface.cpp ) # Also part of digikam main app set(libimgqsort_SRCS imgqsort/imgqsort.cpp ) # Shared libdigikamdatabase ######################################################## set(digikamdatabase_LIB_SRCS ${libdatabase_SRCS} ${libhaar_SRCS} ${pgfutils_SRCS} ) include_directories( $ $ $ $ $ $ $ $ $ $ ) if(ENABLE_DBUS) include_directories($) endif() add_library(digikamdatabase_src OBJECT ${digikamdatabase_LIB_SRCS} ${libdatabasemodels_SRCS}) add_library(digikamdatabasemain_src OBJECT ${libdatabaseutils_SRCS} ${libimgqsort_SRCS}) add_library(digikamdatabasecore_src OBJECT ${libdatabasecore_SRCS}) add_library(digikamdatabase $) generate_export_header(digikamdatabase BASE_NAME digikam_database EXPORT_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/../../app/utils/digikam_database_export.h" ) target_include_directories(digikamdatabase PUBLIC $ $ $ $ $ $ $ $ $ $ $ $ ) target_link_libraries(digikamdatabase PRIVATE digikamcore Qt5::Core Qt5::Gui Qt5::Sql KF5::Solid KF5::I18n ) if(ENABLE_DBUS) target_link_libraries(digikamdatabase PRIVATE Qt5::DBus) endif() if(KF5FileMetaData_FOUND) target_link_libraries(digikamdatabase PRIVATE baloowrap) endif() set_target_properties(digikamdatabase PROPERTIES VERSION ${DIGIKAM_VERSION_SHORT} SOVERSION ${DIGIKAM_VERSION_SHORT}) install(TARGETS digikamdatabase ${INSTALL_TARGETS_DEFAULT_ARGS} ) diff --git a/libs/dialogs/CMakeLists.txt b/libs/dialogs/CMakeLists.txt index 5ba0e1714b..ac98cc588a 100644 --- a/libs/dialogs/CMakeLists.txt +++ b/libs/dialogs/CMakeLists.txt @@ -1,56 +1,56 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # Copyright (c) 2015 by Veaceslav Munteanu, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif (POLICY CMP0063) set(libdialogs_SRCS dprogressdlg.cpp dbusydlg.cpp filesaveoptionsdlg.cpp iccprofileinfodlg.cpp imagedialog.cpp infodlg.cpp libsinfodlg.cpp rawcameradlg.cpp dconfigdlg.cpp dconfigdlgmodels.cpp dconfigdlgview.cpp dconfigdlgview_p.cpp dconfigdlgwidgets.cpp dmessagebox.cpp dsplashscreen.cpp webbrowserdlg.cpp ) set(libdeletedialog_SRCS deletedialog.cpp ) -if(LENSFUN_FOUND) +if(LensFun_FOUND) include_directories(${LENSFUN_INCLUDE_DIRS}) endif() include_directories( $ $ $ $ $ $ $ $ ) #used by digikamcore add_library(digikamdialogscore_src OBJECT ${libdialogs_SRCS}) add_library(digikamdeletedialog_src OBJECT ${libdeletedialog_SRCS}) add_library(digikamdialogs_src OBJECT ${libdialogs_SRCS} ${libdeletedialog_SRCS}) diff --git a/libs/dimg/CMakeLists.txt b/libs/dimg/CMakeLists.txt index 04a0a22232..44df344430 100644 --- a/libs/dimg/CMakeLists.txt +++ b/libs/dimg/CMakeLists.txt @@ -1,210 +1,210 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # Copyright (c) 2015 by Veaceslav Munteanu, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif (POLICY CMP0063) kde_enable_exceptions() # Boost uses operator names (and, not, ...) string(REPLACE "-fno-operator-names" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") set(libdimg_SRCS dimg.cpp drawdecoding.cpp dimgscale.cpp dcolor.cpp dcolorcomposer.cpp imagehistory/dimagehistory.cpp imagehistory/filteraction.cpp imagehistory/historyimageid.cpp ) set(libdimgfilters_SRCS dklcms/digikam-lcms.cpp filters/dimgbuiltinfilter.cpp filters/dimgthreadedfilter.cpp filters/dimgthreadedanalyser.cpp filters/dimgfiltermanager.cpp filters/dimgfiltergenerator.cpp filters/filteractionfilter.cpp filters/randomnumbergenerator.cpp filters/rawprocessingfilter.cpp filters/decorate/borderfilter.cpp filters/decorate/bordersettings.cpp filters/decorate/texturefilter.cpp filters/film/filmfilter.cpp filters/fx/blurfilter.cpp filters/fx/blurfxfilter.cpp filters/fx/colorfxfilter.cpp filters/fx/colorfxsettings.cpp filters/fx/distortionfxfilter.cpp filters/fx/charcoalfilter.cpp filters/fx/embossfilter.cpp filters/fx/filmgrainfilter.cpp filters/fx/filmgrainsettings.cpp filters/fx/invertfilter.cpp filters/fx/pixelsaliasfilter.cpp filters/fx/oilpaintfilter.cpp filters/fx/raindropfilter.cpp filters/auto/autolevelsfilter.cpp filters/auto/autoexpofilter.cpp filters/auto/equalizefilter.cpp filters/auto/stretchfilter.cpp filters/auto/normalizefilter.cpp filters/cb/cbfilter.cpp filters/cb/cbsettings.cpp filters/bcg/bcgfilter.cpp filters/bcg/bcgsettings.cpp filters/bw/bwsepiafilter.cpp filters/bw/bwsepiasettings.cpp filters/bw/tonalityfilter.cpp filters/bw/infraredfilter.cpp filters/bw/mixerfilter.cpp filters/bw/mixersettings.cpp filters/hsl/hslfilter.cpp filters/hsl/hslsettings.cpp filters/hsl/hspreviewwidget.cpp filters/icc/iccmanager.cpp filters/icc/iccprofile.cpp filters/icc/iccprofilesettings.cpp filters/icc/icctransform.cpp filters/icc/icctransformfilter.cpp filters/icc/iccsettingscontainer.cpp filters/icc/iccsettings.cpp filters/lc/localcontrastfilter.cpp filters/lc/localcontrastsettings.cpp filters/lc/localcontrastcontainer.cpp filters/nr/nrfilter.cpp filters/nr/nrestimate.cpp filters/nr/nrsettings.cpp filters/sharp/sharpenfilter.cpp filters/sharp/unsharpmaskfilter.cpp filters/sharp/sharpsettings.cpp filters/levels/imagelevels.cpp filters/levels/levelsfilter.cpp filters/levels/imagehistogram.cpp filters/levels/histogrambox.cpp filters/levels/histogramwidget.cpp filters/levels/histogrampainter.cpp filters/curves/curvescontainer.cpp filters/curves/imagecurves.cpp filters/curves/curvesfilter.cpp filters/curves/curvessettings.cpp filters/curves/curveswidget.cpp filters/curves/curvesbox.cpp filters/wb/wbcontainer.cpp filters/wb/wbfilter.cpp filters/wb/wbsettings.cpp filters/transform/freerotationfilter.cpp filters/transform/freerotationsettings.cpp filters/transform/shearfilter.cpp filters/transform/autocrop.cpp filters/greycstoration/greycstorationfilter.cpp filters/greycstoration/greycstorationsettings.cpp filters/lens/antivignettingfilter.cpp filters/lens/antivignettingsettings.cpp filters/lens/lensdistortionfilter.cpp filters/lens/pixelaccess.cpp filters/redeye/redeyecorrectionfilter.cpp filters/redeye/redeyecorrectionsettings.cpp filters/redeye/redeyecorrectioncontainer.cpp ) # ================================================================================================== # get the gcc version # CImg.h version 1.2.8 do not compile fine with gcc 4.3.x # See bug #163118: digikam-0.9.4_beta5 compilation hangs with gcc 4.3 # Using -fno-tree-pre is work around this problem. # TODO is this hack anymore required? if(CMAKE_COMPILER_IS_GNUCXX) exec_program(${CMAKE_CXX_COMPILER} ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion OUTPUT_VARIABLE GCC_VERSION) if (${GCC_VERSION} VERSION_LESS "4.3.0") message(STATUS "Adjusting compilation flags for GCC version (${GCC_VERSION} )") add_definitions(-fno-tree-pre) endif() endif() -if(LQR-1_FOUND) +if(Lqr-1_FOUND) set(libdimgfilters_SRCS ${libdimgfilters_SRCS} filters/transform/contentawarefilter.cpp ) include_directories(${LQR-1_INCLUDE_DIRS}) endif() -if(LENSFUN_FOUND) +if(LensFun_FOUND) set(libdimgfilters_SRCS ${libdimgfilters_SRCS} filters/lens/lensfunfilter.cpp filters/lens/lensfuncameraselector.cpp filters/lens/lensfuniface.cpp filters/lens/lensfunsettings.cpp ) include_directories(${LENSFUN_INCLUDE_DIRS}) endif() -if(EIGEN3_FOUND) +if(Eigen3_FOUND) set(libdimgfilters_SRCS ${libdimgfilters_SRCS} filters/sharp/refocusfilter.cpp filters/sharp/matrix.cpp ) include_directories(${EIGEN3_INCLUDE_DIR}) endif() set(libdimgloaders_SRCS loaders/dimgloader.cpp loaders/pngloader.cpp loaders/jpegloader.cpp loaders/tiffloader.cpp loaders/rawloader.cpp loaders/ppmloader.cpp loaders/qimageloader.cpp loaders/pgfloader.cpp loaders/jpegsettings.cpp loaders/pngsettings.cpp loaders/tiffsettings.cpp loaders/pgfsettings.cpp ) # JPEG2000 support -if(JASPER_FOUND) +if(Jasper_FOUND) # this should be compiled separately to the lib, cleans if checks set(libdimgloaders_SRCS ${libdimgloaders_SRCS} loaders/jp2kloader.cpp loaders/jp2ksettings.cpp ) endif() include_directories( $ $ $ $ $ $ ) if(X11_FOUND) include_directories($) endif() add_library(dimg_src OBJECT ${libdimgloaders_SRCS} ${libdimgfilters_SRCS} ${libdimg_SRCS} ${libdlib_SRCS} ) diff --git a/libs/imageproperties/CMakeLists.txt b/libs/imageproperties/CMakeLists.txt index f4933554d6..3a9e8b52c8 100644 --- a/libs/imageproperties/CMakeLists.txt +++ b/libs/imageproperties/CMakeLists.txt @@ -1,64 +1,64 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # Copyright (c) 2015 by Veaceslav Munteanu, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif (POLICY CMP0063) set(libimageproperties_SRCS imagepropertiessidebar.cpp imagepropertiestab.cpp imagepropertiesmetadatatab.cpp imagepropertiescolorstab.cpp ) set(libimageversionssidebar_SRCS imagepropertiesversionstab.cpp versionstreeview.cpp versionsoverlays.cpp versionsdelegate.cpp ) -if(${MARBLE_FOUND}) +if(${Marble_FOUND}) set(libimageproperties_SRCS ${libimageproperties_SRCS} imagepropertiesgpstab.cpp imagegpsmodelhelper.cpp ) endif() set(libimagepropertiesdigikam_SRCS imagepropertiessidebarcamgui.cpp imagepropertiessidebardb.cpp cameraitempropertiestab.cpp imagedescedittab.cpp disjointmetadata.cpp captionedit.cpp ) include_directories( $ $ $ $ $ $ $ ) if(ENABLE_DBUS) include_directories($) endif() # used to build digikamcore add_library(imageproperties_src OBJECT ${libimageproperties_SRCS}) add_library(imagepropertiesdigikam_src OBJECT ${libimageversionssidebar_SRCS} ${libimagepropertiesdigikam_SRCS} ) diff --git a/libs/rawengine/libraw/CMakeLists.txt b/libs/rawengine/libraw/CMakeLists.txt index 5487651096..aa9528207d 100644 --- a/libs/rawengine/libraw/CMakeLists.txt +++ b/libs/rawengine/libraw/CMakeLists.txt @@ -1,167 +1,167 @@ # # Copyright (c) 2010-2017, Gilles Caulier, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # -- General definitions rules ------------------------------------------------------------------------ # To prevent warnings from M$ compiler if(WIN32 AND MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS) add_definitions(-D_ATL_SECURE_NO_WARNINGS) add_definitions(-D_AFX_SECURE_NO_WARNINGS) endif() # Under Windows, use specific flag to compile. if(WIN32) add_definitions(-DDJGPP) endif() # Adjust compiler options to compile fine. if(NOT MSVC) while(CMAKE_CXX_FLAGS MATCHES "-Werror=return-type") string(REPLACE "-Werror=return-type" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") endwhile() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++11-narrowing" ) endif() # We always use LCMS version 2 add_definitions(-DUSE_LCMS2) # -- Check dependencies -------------------------------------------------------------------------------- message(STATUS "") message(STATUS "--------------------------------------------------") message(STATUS "digiKam RawEngine dependencies checks:") message(STATUS "") include(MacroOpenMP) DETECT_OPENMP() if(OPENMP_FOUND) message(STATUS "RawEngine will be compiled with OpenMP support") else() message(STATUS "RawEngine will not be compiled with OpenMP support") endif() # Flag to use libjasper with LibRaw RedCine codec -if(JASPER_FOUND) +if(Jasper_FOUND) add_definitions(-DUSE_JASPER) include_directories(${JASPER_INCLUDE_DIR}) message(STATUS "RawEngine will be compiled with RedCine codec") else() message(STATUS "RawEngine will not be compiled with RedCine codec") endif() # JPEG library check message(STATUS "Looking for LibJpeg") if(JPEG_FOUND) # JPEG lib version is done on top level through MacroJPEG.cmake if (${JPEG_LIB_VERSION} LESS 80) set(JPEG8_FOUND FALSE) else() set(JPEG8_FOUND TRUE) endif() endif() # Flag to use libjpeg with LibRaw DNG lossy codec if(JPEG8_FOUND) add_definitions(-DUSE_JPEG) add_definitions(-DUSE_JPEG8) include_directories(${JPEG_INCLUDE_DIR}) message(STATUS "RawEngine will be compiled with DNG lossy codec") else() message(STATUS "RawEngine will not be compiled with DNG lossy codec") endif() message(STATUS "Looking for PThreads") set(PTHREADS_FOUND (CMAKE_USE_PTHREADS_INIT OR CMAKE_USE_WIN32_THREADS_INIT)) message(STATUS "--------------------------------------------------") message(STATUS "") # -- LibRaw library Compilation -------------------------------------------------------------------------------- # Flag to include demosaic pack GPL2 add_definitions(-DLIBRAW_DEMOSAIC_PACK_GPL2) # Flag to include demosaic pack GPL3 add_definitions(-DLIBRAW_DEMOSAIC_PACK_GPL3) # Flag to compile with DNG SDK add_definitions(-DUSE_DNGSDK) # Flag to debug LibRaw add_definitions(-DDCRAW_VERBOSE) # Flag used by default into LibRaw to not use dedicated external thread #add_definitions(-DLIBRAW_NOTHREADS) # Flag to export library symbols if(WIN32) if(MSVC) add_definitions(-DLIBRAW_BUILDLIB) else() add_definitions(-DLIBRAW_NODLL) endif() endif() include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ ${CMAKE_CURRENT_SOURCE_DIR}/demosaic-pack-GPL2 ${CMAKE_CURRENT_SOURCE_DIR}/demosaic-pack-GPL3 ${CMAKE_CURRENT_SOURCE_DIR}/../../dngwriter/extra/dng_sdk ) set(libraw_LIB_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/internal/dcraw_common.cpp ${CMAKE_CURRENT_SOURCE_DIR}/internal/dcraw_fileio.cpp ${CMAKE_CURRENT_SOURCE_DIR}/internal/demosaic_packs.cpp ${CMAKE_CURRENT_SOURCE_DIR}/src/libraw_cxx.cpp ${CMAKE_CURRENT_SOURCE_DIR}/src/libraw_c_api.cpp ${CMAKE_CURRENT_SOURCE_DIR}/src/libraw_datastream.cpp ) # Disable compilation warnings from LibRaw. Just to be clear on the console. # Adjust flag for static lib and 64 bits computers using -fPIC for GCC compiler (B.K.O: #269903) # Use O4 GCC compilation option to prevent artifacts with OpenMP (B.K.O #305382) foreach(_curentfile ${libraw_LIB_SRCS}) if(WIN32 AND MSVC) set_source_files_properties(${_curentfile} PROPERTIES COMPILE_FLAGS "-w") else() set_source_files_properties(${_curentfile} PROPERTIES COMPILE_FLAGS "-w -fPIC -O4") endif() endforeach() add_library(libraw STATIC ${libraw_LIB_SRCS}) target_link_libraries(libraw libdng ${MATH_LIBRARY} ${LCMS2_LIBRARIES} ${OPENMP_LDFLAGS} ) if(JPEG_FOUND) target_link_libraries(libraw ${JPEG_LIBRARY}) endif() -if(JASPER_FOUND) +if(Jasper_FOUND) target_link_libraries(libraw ${JASPER_LIBRARIES}) endif() # Registration of Libraw configuration to a dedicated header MACRO_BOOL_TO_01(JPEG8_FOUND LIBRAW_USE_DNGLOSSYCODEC) MACRO_BOOL_TO_01(OPENMP_FOUND LIBRAW_USE_OPENMP) -MACRO_BOOL_TO_01(JASPER_FOUND LIBRAW_USE_REDCINECODEC) +MACRO_BOOL_TO_01(Jasper_FOUND LIBRAW_USE_REDCINECODEC) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/libraw_config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/libraw/libraw_config.h) diff --git a/libs/widgets/CMakeLists.txt b/libs/widgets/CMakeLists.txt index 6cebebc896..4b72c86c7e 100644 --- a/libs/widgets/CMakeLists.txt +++ b/libs/widgets/CMakeLists.txt @@ -1,175 +1,175 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # Copyright (c) 2015 by Veaceslav Munteanu, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif (POLICY CMP0063) set(libcommonwidgets_SRCS common/abstractitemdragdrophandler.cpp common/dexpanderbox.cpp common/dactivelabel.cpp common/dragdropimplementations.cpp common/modelcompleter.cpp common/searchtextbar.cpp common/statesavingobject.cpp common/visibilitycontroller.cpp common/dlayoutbox.cpp ) set(librangetools_SRCS range/dsliderspinbox.cpp range/dnuminput.cpp range/drangebox.cpp ) set(libcombotools_SRCS combo/comboboxutilities.cpp combo/dcombobox.cpp combo/squeezedcombobox.cpp ) set(libcolorstools_SRCS colors/dcolorvalueselector.cpp colors/dhuesaturationselect.cpp colors/dcolorchoosermode.cpp colors/dcolorselector.cpp colors/colorgradientwidget.cpp colors/dgradientslider.cpp ) set(libfontstools_SRCS fonts/dfontproperties.cpp fonts/dfontselect.cpp ) set(libfilestools_SRCS files/filesaveoptionsbox.cpp files/filesaveconflictbox.cpp files/dfiledialog.cpp files/dfileselector.cpp files/dbinarysearch.cpp files/dbinaryiface.cpp files/drawdecoderwidget.cpp ) set(libmainview_SRCS mainview/dxmlguiwindow.cpp mainview/daboutdata.cpp mainview/dzoombar.cpp mainview/dcursortracker.cpp mainview/thumbbardock.cpp mainview/thememanager.cpp mainview/schememanager.cpp mainview/sidebar.cpp mainview/fullscreensettings.cpp ../../app/utils/digikam_globals.cpp ) set(libitemview_SRCS itemview/dcategorizedview.cpp itemview/dcategorizedsortfilterproxymodel.cpp itemview/ditemdelegate.cpp itemview/ditemtooltip.cpp itemview/dcategorydrawer.cpp itemview/imagedelegateoverlay.cpp itemview/itemviewhoverbutton.cpp itemview/itemviewimagedelegate.cpp itemview/itemviewtooltip.cpp itemview/itemviewcategorized.cpp itemview/actioncategorizedview.cpp ) set(libgraphicsviewwidgets_SRCS graphicsview/clickdragreleaseitem.cpp graphicsview/dimgchilditem.cpp graphicsview/dimgpreviewitem.cpp graphicsview/regionframeitem.cpp graphicsview/graphicsdimgitem.cpp graphicsview/graphicsdimgview.cpp graphicsview/imagezoomsettings.cpp graphicsview/previewlayout.cpp graphicsview/paniconwidget.cpp graphicsview/itemvisibilitycontroller.cpp ) set(libmetadatawidgets_SRCS metadata/mdkeylistviewitem.cpp metadata/metadatalistview.cpp metadata/metadatalistviewitem.cpp metadata/metadatawidget.cpp metadata/metadataselector.cpp metadata/metadatapanel.cpp metadata/iptcwidget.cpp metadata/exifwidget.cpp metadata/makernotewidget.cpp metadata/xmpwidget.cpp metadata/ratingwidget.cpp metadata/colorlabelwidget.cpp metadata/picklabelwidget.cpp metadata/altlangstredit.cpp metadata/colorlabelwidget.cpp metadata/countryselector.cpp metadata/subjectwidget.cpp ) set(libiccprofileswidgets_SRCS iccprofiles/iccpreviewwidget.cpp iccprofiles/iccprofilewidget.cpp iccprofiles/cietonguewidget.cpp iccprofiles/iccprofilescombobox.cpp ) include_directories( $ $ $ $ $ $ $ $ ) if(KF5Kipi_FOUND) include_directories($) endif() if(KF5NotifyConfig_FOUND) include_directories($) endif() -if(GPHOTO2_FOUND) +if(Gphoto2_FOUND) include_directories(${GPHOTO2_INCLUDE_DIRS}) endif() add_library(digikamwidgetscore_src OBJECT ${libmainview_SRCS} ${libcommonwidgets_SRCS} ${libgraphicsviewwidgets_SRCS} ${libiccprofileswidgets_SRCS} ${libitemview_SRCS} ${libmetadatawidgets_SRCS} ${libcolorstools_SRCS} ${libfontstools_SRCS} ${libfilestools_SRCS} ${libcombotools_SRCS} ${librangetools_SRCS} ) #############################################################" set(libimagehistory_SRCS imagehistory/filtershistorywidget.cpp imagehistory/imagefiltershistoryitemdelegate.cpp imagehistory/imagefiltershistorymodel.cpp imagehistory/imagefiltershistorytreeitem.cpp imagehistory/versionswidget.cpp ) add_library(imagehistorywidgets_src OBJECT ${libimagehistory_SRCS}) diff --git a/tests/advancedrename/CMakeLists.txt b/tests/advancedrename/CMakeLists.txt index 6b91fd2ce4..a138413d60 100644 --- a/tests/advancedrename/CMakeLists.txt +++ b/tests/advancedrename/CMakeLists.txt @@ -1,105 +1,105 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif (POLICY CMP0063) set(renamecustomizertest_SRCS renamecustomizertest.cpp ) include_directories( $ $ $ $ $ $ ) add_executable(renamecustomizertest ${renamecustomizertest_SRCS}) add_test(renamecustomizertest renamecustomizertest) ecm_mark_as_test(renamecustomizertest) target_link_libraries(renamecustomizertest digikamcore digikamgui libdng Qt5::Core Qt5::Gui Qt5::Test KF5::I18n KF5::XmlGui ${OpenCV_LIBRARIES} ) #------------------------------------------------------------------------ set(cameranamehelper_SRCS cameranamehelpertest.cpp ) add_executable(cameranamehelpertest ${cameranamehelper_SRCS}) add_test(cameranamehelpertest cameranamehelpertest) ecm_mark_as_test(cameranamehelpertest) target_link_libraries(cameranamehelpertest digikamdatabase digikamcore digikamgui libdng Qt5::Core Qt5::Gui Qt5::Test KF5::I18n KF5::XmlGui ${OpenCV_LIBRARIES} ) -if(GPHOTO2_FOUND) +if(Gphoto2_FOUND) target_link_libraries(cameranamehelpertest ${GPHOTO2_LIBRARIES}) endif() #------------------------------------------------------------------------ set(advancedrenametest_SRCS advancedrenametest.cpp ) add_executable(advancedrenametest ${advancedrenametest_SRCS}) add_test(advancedrenametest advancedrenametest) ecm_mark_as_test(advancedrenametest) target_link_libraries(advancedrenametest digikamdatabase digikamcore digikamgui libdng Qt5::Core Qt5::Gui Qt5::Test KF5::I18n KF5::Solid KF5::XmlGui ${OpenCV_LIBRARIES} ) diff --git a/tests/assistants/CMakeLists.txt b/tests/assistants/CMakeLists.txt index 9db7ce75ba..891bd0b827 100644 --- a/tests/assistants/CMakeLists.txt +++ b/tests/assistants/CMakeLists.txt @@ -1,146 +1,146 @@ # # Copyright (c) 2010-2017, Gilles Caulier, # Copyright (c) 2011-2015, Benjamin Girault, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # ======================================================= # Stand alone version of ExpoBlending tool if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif (POLICY CMP0063) include_directories( $ $ $ ) # ======================================================= # Stand alone version of ExpoBlending tool set(expoblending_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/expoblending.cpp) add_executable(expoblending ${expoblending_SRCS}) target_link_libraries(expoblending digikamcore libdng Qt5::Gui Qt5::Xml ) # ======================================================= # Stand alone version of Calendar tool set(calendar_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/calendar.cpp) add_executable(calendar ${calendar_SRCS}) target_link_libraries(calendar digikamcore libdng Qt5::Gui Qt5::Xml ) # ======================================================= # Stand alone version of Panorama tool plus test code if(FLEX_FOUND AND BISON_FOUND AND KF5ThreadWeaver_FOUND) set(panorama_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/panorama.cpp) add_executable(panorama ${panorama_SRCS}) target_link_libraries(panorama digikamcore libdng Qt5::Gui Qt5::Xml ) set(panoparser_test_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/panoparser_test.cpp) add_executable(panoparser_test ${panoparser_test_SRCS}) target_link_libraries(panoparser_test digikamcore libdng Qt5::Gui Qt5::Xml ) endif() # ======================================================= # Stand alone version of SendByMail tool set(sendbymail_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/sendbymail.cpp) add_executable(sendbymail ${sendbymail_SRCS}) target_link_libraries(sendbymail digikamcore libdng Qt5::Gui Qt5::Xml ) # ======================================================= # Stand alone version of PrintCreator tool set(printcreator_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/printcreator.cpp) add_executable(printcreator ${printcreator_SRCS}) target_link_libraries(printcreator digikamcore libdng Qt5::Gui Qt5::Xml ) # ======================================================= # Stand alone version of VideoSlideshow tool if(ENABLE_MEDIAPLAYER) set(videoslideshow_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/videoslideshow.cpp) add_executable(videoslideshow ${videoslideshow_SRCS}) target_link_libraries(videoslideshow digikamcore libdng Qt5::Gui Qt5::Xml ) endif() # ======================================================= # Stand alone version of HTML Gallery tool -if(LIBXML2_FOUND AND LIBXSLT_FOUND) +if(LibXml2_FOUND AND LibXslt_FOUND) set(htmlgallery_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/htmlgallery.cpp) add_executable(htmlgallery ${htmlgallery_SRCS}) target_link_libraries(htmlgallery digikamcore libdng Qt5::Gui Qt5::Xml ) endif() diff --git a/tests/fileio/CMakeLists.txt b/tests/fileio/CMakeLists.txt index 436f7e3360..e2a7eb6c23 100644 --- a/tests/fileio/CMakeLists.txt +++ b/tests/fileio/CMakeLists.txt @@ -1,143 +1,143 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif (POLICY CMP0063) include_directories( $ $ $ $ $ ) set(pgfscaled_SRCS pgfscaled.cpp ${pgfutils_SRCS}) add_executable(pgfscaled ${pgfscaled_SRCS}) ecm_mark_nongui_executable(pgfscaled) target_link_libraries(pgfscaled digikamcore libdng Qt5::Core Qt5::Gui KF5::I18n ) #------------------------------------------------------------------------ set(qtpgftest_SRCS qtpgftest.cpp ${pgfutils_SRCS}) add_executable(qtpgftest ${qtpgftest_SRCS}) ecm_mark_nongui_executable(qtpgftest) target_link_libraries(qtpgftest digikamcore libdng Qt5::Core Qt5::Gui KF5::I18n ) #------------------------------------------------------------------------ set(loadpgfdata_SRCS loadpgfdata.cpp ${pgfutils_SRCS}) add_executable(loadpgfdata ${loadpgfdata_SRCS}) ecm_mark_nongui_executable(loadpgfdata) target_link_libraries(loadpgfdata digikamcore libdng Qt5::Core Qt5::Gui KF5::I18n ) #------------------------------------------------------------------------ set(loadsavethreadtest_SRCS loadsavethreadtest.cpp) add_executable(loadsavethreadtest ${loadsavethreadtest_SRCS}) ecm_mark_nongui_executable(loadsavethreadtest) target_link_libraries(loadsavethreadtest digikamcore libdng Qt5::Core KF5::I18n ) #------------------------------------------------------------------------ set(filesaveoptionsboxtest_SRCS filesaveoptionsboxtest.cpp ) add_executable(filesaveoptionsboxtest ${filesaveoptionsboxtest_SRCS}) add_test(filesaveoptionsboxtest filesaveoptionsboxtest) ecm_mark_as_test(filesaveoptionsboxtest) target_link_libraries(filesaveoptionsboxtest digikamcore digikamdatabase libdng Qt5::Test ) #------------------------------------------------------------------------ set(statesavingobject_SRCS statesavingobjecttest.cpp ) add_executable(statesavingobjecttest ${statesavingobject_SRCS}) add_test(statesavingobjecttest statesavingobjecttest) ecm_mark_as_test(statesavingobjecttest) target_link_libraries(statesavingobjecttest digikamcore libdng Qt5::Gui Qt5::Test KF5::XmlGui ${OpenCV_LIBRARIES} ) -if(GPHOTO2_FOUND) +if(Gphoto2_FOUND) target_link_libraries(statesavingobjecttest ${GPHOTO2_LIBRARIES}) endif() #------------------------------------------------------------------------ if(ENABLE_MEDIAPLAYER) set(videothumbtest_SRCS videothumbtest.cpp) add_executable(videothumbtest ${videothumbtest_SRCS}) ecm_mark_nongui_executable(videothumbtest) target_link_libraries(videothumbtest digikamcore libdng Qt5::Core Qt5::Widgets ) endif() diff --git a/tests/filters/CMakeLists.txt b/tests/filters/CMakeLists.txt index ae04c12ec4..c7e14163ed 100644 --- a/tests/filters/CMakeLists.txt +++ b/tests/filters/CMakeLists.txt @@ -1,89 +1,89 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif (POLICY CMP0063) include_directories( $ $ $ $ $ $ ) set(testautocrop_SRCS testautocrop.cpp) add_executable(testautocrop ${testautocrop_SRCS}) ecm_mark_nongui_executable(testautocrop) target_link_libraries(testautocrop digikamcore libdng Qt5::Core Qt5::Gui Qt5::Test KF5::I18n KF5::XmlGui ${OpenCV_LIBRARIES} ) #------------------------------------------------------------------------ -if(LENSFUN_FOUND) +if(LensFun_FOUND) set(testlensfuniface_SRCS testlensfuniface.cpp) add_executable(testlensfuniface ${testlensfuniface_SRCS}) ecm_mark_nongui_executable(testlensfuniface) target_link_libraries(testlensfuniface digikamcore libdng Qt5::Core KF5::I18n ${LENSFUN_LIBRARIES} ${OpenCV_LIBRARIES} ) if(NOT WIN32) # To link under Solaris (see bug #274484) target_link_libraries(testlensfuniface ${MATH_LIBRARY}) endif() if(CMAKE_SYSTEM_NAME STREQUAL FreeBSD) target_link_libraries(testlensfuniface ${KVM_LIBRARY}) endif() endif() #------------------------------------------------------------------------ set(testnrestimate_SRCS testnrestimate.cpp) add_executable (testnrestimate ${testnrestimate_SRCS}) ecm_mark_nongui_executable(testnrestimate) target_link_libraries(testnrestimate digikamcore digikamdatabase digikamcore libdng Qt5::Core Qt5::Gui Qt5::Test KF5::I18n ${OpenCV_LIBRARIES} ) diff --git a/tests/geolocation/CMakeLists.txt b/tests/geolocation/CMakeLists.txt index e97f31b820..4fa9e8dbed 100644 --- a/tests/geolocation/CMakeLists.txt +++ b/tests/geolocation/CMakeLists.txt @@ -1,11 +1,11 @@ # # Copyright (c) 2010-2017, Gilles Caulier, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. -if(MARBLE_FOUND) +if(Marble_FOUND) add_subdirectory(editor) add_subdirectory(geoiface) add_subdirectory(kmlexport) endif() diff --git a/utilities/CMakeLists.txt b/utilities/CMakeLists.txt index b21f49f801..2f259d573b 100644 --- a/utilities/CMakeLists.txt +++ b/utilities/CMakeLists.txt @@ -1,26 +1,26 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. add_subdirectory(advancedrename) add_subdirectory(queuemanager) add_subdirectory(imageeditor) add_subdirectory(lighttable) add_subdirectory(importui) add_subdirectory(slideshow) add_subdirectory(presentation) add_subdirectory(assistants) add_subdirectory(setup) add_subdirectory(fuzzysearch) add_subdirectory(maintenance) add_subdirectory(searchwindow) add_subdirectory(metadataedit) add_subdirectory(kdesupport) add_subdirectory(facemanagement) add_subdirectory(mediaserver) -if(${MARBLE_FOUND}) +if(${Marble_FOUND}) add_subdirectory(geolocation) endif() diff --git a/utilities/assistants/CMakeLists.txt b/utilities/assistants/CMakeLists.txt index 52138aa9ad..4c11664069 100644 --- a/utilities/assistants/CMakeLists.txt +++ b/utilities/assistants/CMakeLists.txt @@ -1,24 +1,24 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. add_subdirectory(common) add_subdirectory(firstrun) add_subdirectory(expoblending) add_subdirectory(calendar) add_subdirectory(sendbymail) add_subdirectory(printcreator) -if(LIBXML2_FOUND AND LIBXSLT_FOUND) +if(LibXml2_FOUND AND LibXslt_FOUND) add_subdirectory(htmlgallery) endif() if(ENABLE_MEDIAPLAYER) add_subdirectory(videoslideshow) endif() if(FLEX_FOUND AND BISON_FOUND AND KF5ThreadWeaver_FOUND) add_subdirectory(panorama) endif() diff --git a/utilities/imageeditor/CMakeLists.txt b/utilities/imageeditor/CMakeLists.txt index 0b14018085..981414befd 100644 --- a/utilities/imageeditor/CMakeLists.txt +++ b/utilities/imageeditor/CMakeLists.txt @@ -1,166 +1,166 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # Copyright (c) 2015 by Veaceslav Munteanu, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif (POLICY CMP0063) include_directories($ $ $ $ $ $ $ $ $ $ ) if(KF5KIO_FOUND) include_directories($) endif() if(KF5Kipi_FOUND) include_directories($) endif() -if(GPHOTO2_FOUND) +if(Gphoto2_FOUND) include_directories(${GPHOTO2_INCLUDE_DIRS}) endif() set(libeditorwidgets_SRCS widgets/imageguidewidget.cpp widgets/imagebrushguidewidget.cpp widgets/imagepreviewitem.cpp widgets/previewtoolbar.cpp widgets/previewlist.cpp widgets/imageregionwidget.cpp widgets/imageregionitem.cpp widgets/rubberitem.cpp widgets/canvas.cpp ) set(libeditordlg_SRCS dialogs/colorcorrectiondlg.cpp dialogs/softproofdialog.cpp dialogs/versioningpromptusersavedlg.cpp ) set(libeditorgui_SRCS main/imagewindow.cpp ) install(FILES main/imageeditorui5.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/digikam) set(libeditorcore_SRCS core/undocache.cpp core/undoaction.cpp core/undomanager.cpp core/editorcore.cpp core/iccpostloadingmanager.cpp ) set(libeditorprintiface_SRCS printiface/printhelper.cpp printiface/printoptionspage.cpp printiface/printconfig.cpp ) ki18n_wrap_ui(libeditorprintiface_SRCS printiface/printoptionspage.ui ) set(libeditorrawimport_SRCS rawimport/rawimport.cpp rawimport/rawpreview.cpp rawimport/rawsettingsbox.cpp ) set(libeditortools_SRCS tools/decorate/inserttextwidget.cpp tools/decorate/inserttexttool.cpp tools/decorate/bordertool.cpp tools/decorate/texturetool.cpp tools/filters/colorfxtool.cpp tools/filters/charcoaltool.cpp tools/filters/embosstool.cpp tools/filters/oilpainttool.cpp tools/filters/blurfxtool.cpp tools/filters/distortionfxtool.cpp tools/filters/raindroptool.cpp tools/filters/filmgraintool.cpp tools/colors/autocorrectiontool.cpp tools/colors/bcgtool.cpp tools/colors/bwsepiatool.cpp tools/colors/profileconversiontool.cpp tools/colors/cbtool.cpp tools/colors/whitebalancetool.cpp tools/colors/hsltool.cpp tools/colors/channelmixertool.cpp tools/colors/adjustcurvestool.cpp tools/colors/adjustlevelstool.cpp tools/colors/filmtool.cpp tools/enhance/restorationtool.cpp tools/enhance/blurtool.cpp tools/enhance/sharpentool.cpp tools/enhance/noisereductiontool.cpp tools/enhance/localcontrasttool.cpp tools/enhance/redeyetool.cpp tools/enhance/antivignettingtool.cpp tools/enhance/lensdistortiontool.cpp tools/enhance/healingclonetool.cpp tools/enhance/hotpixels/weights.cpp tools/enhance/hotpixels/blackframeparser.cpp tools/enhance/hotpixels/blackframelistview.cpp tools/enhance/hotpixels/hotpixelfixer.cpp tools/enhance/hotpixels/hotpixelstool.cpp tools/transform/freerotationtool.cpp tools/transform/sheartool.cpp tools/transform/resizetool.cpp tools/transform/perspectivetool.cpp tools/transform/perspectivewidget.cpp tools/transform/triangle.cpp tools/transform/matrix.cpp tools/transform/imageselectionwidget.cpp tools/transform/ratiocroptool.cpp ) -if(LQR-1_FOUND) +if(Lqr-1_FOUND) set(libeditortools_SRCS ${libeditortools_SRCS} tools/transform/contentawareresizetool.cpp ) endif() -if(LENSFUN_FOUND) +if(LensFun_FOUND) set(libeditortools_SRCS ${libeditortools_SRCS} tools/enhance/lensautofixtool.cpp ) include_directories(${LENSFUN_INCLUDE_DIRS}) endif() set(libeditoriface_SRCS editor/editortool.cpp editor/editortooliface.cpp editor/editorstackview.cpp editor/editortoolsettings.cpp editor/editorwindow.cpp editor/imageiface.cpp ) # this lib is used to build digikam core add_library(imageeditor_src OBJECT ${libeditorcore_SRCS} ${libeditordlg_SRCS} ${libeditoriface_SRCS} ${libeditorprintiface_SRCS} ${libeditorrawimport_SRCS} ${libeditorwidgets_SRCS} ${libeditortools_SRCS} ) add_library(imageeditorgui_src OBJECT ${libeditorgui_SRCS}) diff --git a/utilities/importui/CMakeLists.txt b/utilities/importui/CMakeLists.txt index a4490e7ce1..1eb2b95aed 100644 --- a/utilities/importui/CMakeLists.txt +++ b/utilities/importui/CMakeLists.txt @@ -1,95 +1,95 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # Copyright (c) 2015 by Veaceslav Munteanu, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif (POLICY CMP0063) include_directories($ $ $ $ $ $ $ $ $ ) if(KF5KIO_FOUND) include_directories($) endif() if(KF5Kipi_FOUND) include_directories($) endif() -if(GPHOTO2_FOUND) +if(Gphoto2_FOUND) include_directories(${GPHOTO2_INCLUDE_DIRS}) endif() set(libimportuibackend_SRCS backend/cameracontroller.cpp backend/camerathumbsctrl.cpp # backend/camerahistoryupdater.cpp backend/dkcamera.cpp backend/gpcamera.cpp backend/camiteminfo.cpp backend/umscamera.cpp main/importsettings.cpp ) set(libimportui_SRCS dialogs/camerafolderdialog.cpp dialogs/camerainfodialog.cpp dialogs/capturedlg.cpp dialogs/cameramessagebox.cpp widgets/capturewidget.cpp widgets/freespacewidget.cpp widgets/renamecustomizer.cpp widgets/albumcustomizer.cpp widgets/advancedsettings.cpp widgets/scriptingsettings.cpp widgets/filter.cpp widgets/filtercombo.cpp widgets/importcontextmenu.cpp widgets/dngconvertsettings.cpp models/importimagemodel.cpp models/importthumbnailmodel.cpp models/importfiltermodel.cpp models/camitemsortsettings.cpp items/camerafolderitem.cpp items/itemviewimportdelegate.cpp items/importcategorydrawer.cpp items/importdelegate.cpp items/importtooltipfiller.cpp items/importoverlays.cpp views/camerafolderview.cpp views/cameranamehelper.cpp views/freespacetooltip.cpp views/importcategorizedview.cpp views/importthumbnailbar.cpp views/importpreviewview.cpp views/importiconview.cpp views/importiconview_p.cpp views/importstackedview.cpp views/importview.cpp main/importui.cpp ) add_library(importuibackend_src OBJECT ${libimportuibackend_SRCS}) add_library(importui_src OBJECT ${libimportui_SRCS}) install(FILES main/importui5.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/digikam) diff --git a/utilities/lighttable/CMakeLists.txt b/utilities/lighttable/CMakeLists.txt index de6781c371..41c0598314 100644 --- a/utilities/lighttable/CMakeLists.txt +++ b/utilities/lighttable/CMakeLists.txt @@ -1,41 +1,41 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # Copyright (c) 2015 by Veaceslav Munteanu, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif (POLICY CMP0063) set(liblighttable_SRCS lighttablepreview.cpp lighttableview.cpp lighttablethumbbar.cpp lighttablewindow.cpp ) include_directories($ $ $ $ $ $ $ $ $ ) if(KF5Kipi_FOUND) include_directories($) endif() -if(GPHOTO2_FOUND) +if(Gphoto2_FOUND) include_directories(${GPHOTO2_INCLUDE_DIRS}) endif() add_library(lighttable_src OBJECT ${liblighttable_SRCS}) install(FILES lighttablewindowui5.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/digikam) diff --git a/utilities/queuemanager/CMakeLists.txt b/utilities/queuemanager/CMakeLists.txt index ca515668d6..4189e2f666 100644 --- a/utilities/queuemanager/CMakeLists.txt +++ b/utilities/queuemanager/CMakeLists.txt @@ -1,108 +1,108 @@ # # Copyright (c) 2010-2017 by Gilles Caulier, # Copyright (c) 2015 by Veaceslav Munteanu, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif (POLICY CMP0063) set(libqueuemanager_SRCS tools/color/autocorrection.cpp tools/color/bcgcorrection.cpp tools/color/bwconvert.cpp tools/color/channelmixer.cpp tools/color/colorbalance.cpp tools/color/convert16to8.cpp tools/color/convert8to16.cpp tools/color/curvesadjust.cpp tools/color/hslcorrection.cpp tools/color/iccconvert.cpp tools/color/invert.cpp tools/color/whitebalance.cpp tools/convert/convert2jpeg.cpp tools/convert/convert2pgf.cpp tools/convert/convert2png.cpp tools/convert/convert2tiff.cpp tools/convert/convert2dng.cpp tools/custom/userscript.cpp tools/decorate/border.cpp tools/decorate/watermark.cpp tools/enhance/antivignetting.cpp tools/enhance/blur.cpp tools/enhance/localcontrast.cpp tools/enhance/noisereduction.cpp tools/enhance/restoration.cpp tools/enhance/sharpen.cpp tools/enhance/redeyecorrection.cpp tools/filters/filmgrain.cpp tools/filters/colorfx.cpp tools/metadata/assigntemplate.cpp tools/metadata/removemetadata.cpp tools/metadata/timeadjust.cpp tools/metadata/timeadjustcontainer.cpp tools/metadata/timeadjustsettings.cpp tools/metadata/clockphotodialog.cpp tools/metadata/detbyclockphotobutton.cpp tools/transform/flip.cpp tools/transform/resize.cpp tools/transform/rotate.cpp tools/transform/crop.cpp manager/actionthread.cpp manager/task.cpp manager/batchtool.cpp manager/batchtoolutils.cpp manager/batchtoolsmanager.cpp manager/workflowmanager.cpp views/workflowdlg.cpp views/assignedlist.cpp views/queuelist.cpp views/queuepool.cpp views/queuesettingsview.cpp views/queuetooltip.cpp views/toolsettingsview.cpp views/toolslistview.cpp views/toolsview.cpp views/workflowlist.cpp main/queuemgrwindow.cpp ) -if(JASPER_FOUND) +if(Jasper_FOUND) set(libqueuemanager_SRCS ${libqueuemanager_SRCS} tools/convert/convert2jp2.cpp ) endif() -if(LENSFUN_FOUND) +if(LensFun_FOUND) set(libqueuemanager_SRCS ${libqueuemanager_SRCS} tools/enhance/lensautofix.cpp ) include_directories(${LENSFUN_INCLUDE_DIRS}) endif() -if(GPHOTO2_FOUND) +if(Gphoto2_FOUND) include_directories(${GPHOTO2_INCLUDE_DIRS}) endif() include_directories($ $ $ $ $ $ $ $ $ ) if(KF5Kipi_FOUND) include_directories($) endif() add_library(queuemanager_src OBJECT ${libqueuemanager_SRCS} ${libdlib_SRCS}) install(FILES main/queuemgrwindowui5.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/digikam)