diff options
96 files changed, 2219 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..d47ba67a --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,88 @@ +############################################ +# # +# Improvements and feedbacks are welcome # +# # +# This file is released under GPL >= 3 # +# # +############################################ + + +##### set project version ######################## + +include( TDEVersion ) +cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} ) +tde_set_project_version( ) + + +#### general package setup + +project( digikam ) + + +#### include essential cmake modules + +include( FindPkgConfig ) +include( CheckSymbolExists ) +include( CheckIncludeFile ) +include( CheckLibraryExists ) +include( CheckCSourceCompiles ) +include( CheckCXXSourceCompiles ) + + +#### include our cmake modules + +include( TDEMacros ) + + +##### setup install paths + +include( TDESetupPaths ) +tde_setup_paths( ) + + +##### optional stuff + +option( WITH_ALL_OPTIONS "Enable all optional support" OFF ) +option( WITH_SQLITE3 "Build SQLite3 backend support" ${WITH_ALL_OPTIONS} ) + +option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} ) + + +##### user requested modules + +option( BUILD_ALL "Build all" ON ) +option( BUILD_DOC "Build documentation" ${BUILD_ALL} ) +option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} ) + + +##### configure checks + +include( ConfigureChecks.cmake ) + + +###### global compiler settings + +add_definitions( -DHAVE_CONFIG_H ) + +set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) +set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) +set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ) + + +##### directories + +add_subdirectory( data ) +add_subdirectory( icons ) +add_subdirectory( pics ) +add_subdirectory( src ) + + +##### other data ################################ + +tde_conditional_add_project_docs( BUILD_DOC ) +tde_conditional_add_project_translations( BUILD_TRANSLATIONS ) + + +##### write configure files + +configure_file( config.h.cmake config.h @ONLY ) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake new file mode 100644 index 00000000..93a66bdd --- /dev/null +++ b/ConfigureChecks.cmake @@ -0,0 +1,137 @@ +########################################### +# # +# Improvements and feedback are welcome # +# # +# This file is released under GPL >= 3 # +# # +########################################### + + +# required stuff +find_package( TQt ) +find_package( TDE ) + +tde_setup_architecture_flags( ) + +include(TestBigEndian) +test_big_endian(WORDS_BIGENDIAN) + +tde_setup_largefiles( ) + +# Add Trinity location for pkg-config files +set( ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${PKGCONFIG_INSTALL_DIR}") + + +##### check for gcc visibility support + +if( WITH_GCC_VISIBILITY ) + tde_setup_gcc_visibility( ) +endif( WITH_GCC_VISIBILITY ) + + +##### check for PThread + +find_package ( Threads REQUIRED ) + + +##### check for SQLite3 + +if( WITH_SQLITE3 ) + + pkg_search_module( SQLITE3 sqlite3 ) + if( NOT SQLITE3_FOUND ) + tde_message_fatal( "SQLite3 was requested but not found on your system" ) + endif( ) + message( STATUS "sqlite3 linking: ${SQLITE3_LIBRARIES}" ) + +endif( WITH_SQLITE3 ) + + +##### check for lcms + +check_include_file( lcms.h HAVE_LCMS_H ) +if( HAVE_LCMS_H ) + pkg_search_module( LCMS lcms ) + set( LCMS_HEADER lcms.h ) +else() + tde_message_fatal( "lcms is requireq, but was not found on your system" ) +endif() + + +##### check for libexiv2 + +pkg_search_module( KEXIV2 libkexiv2 ) +if( NOT KEXIV2_FOUND ) + tde_message_fatal( "libkexiv2 is required, but was not found on your system" ) +endif( NOT KEXIV2_FOUND ) + + +##### check for libjpeg + +find_package( JPEG ) +if( NOT JPEG_FOUND ) + tde_message_fatal( "libjpeg is required, but was not found on your system" ) +endif() + + +##### checks for libpeg2000 + +find_package( Jasper ) +if( NOT JASPER_FOUND ) + tde_message_fatal( "libjasper is required but not found on your system" ) +endif( ) + + +##### check for libkdcraw + +pkg_search_module( KDCRAW libkdcraw ) +if( NOT KDCRAW_FOUND ) + tde_message_fatal( "libkdcraw is required, but not found on your system" ) +endif( ) + + +##### check for libkipi + +pkg_search_module( KIPI libkipi ) +if( NOT KIPI_FOUND ) + tde_message_fatal( "libkipi is requireq, but not found on your system" ) +endif( ) + + +##### check for libgphoto2 + +pkg_search_module( GPHOTO2 libgphoto2 ) +if( NOT GPHOTO2_FOUND ) + tde_message_fatal( "libgphoto2 is required, but not found on your system" ) +endif( ) + +check_library_exists(gphoto2_port gp_port_info_get_name "" GPHOTO2_5) +if( GPHOTO2_5 ) + message(STATUS " found libgphoto2 2.5") + set( HAVE_GPHOTO25 1 ) +else( ) + message(STATUS " assuming libgphoto2 2.4") +endif( ) + + +##### check for libpng + +find_package( PNG ) +if( NOT PNG_FOUND ) + tde_message_fatal( "libpng is required, but was not found on your system" ) +endif() + + +##### checks for libtiff + +find_package( TIFF ) +if( NOT TIFF_FOUND ) + tde_message_fatal( "libtiff is required, but not found on your system" ) +endif( ) + + +##### other checks + +check_include_file( "inttypes.h" HAVE_INTTYPES_H ) +check_include_file( "stdint.h" HAVE_STDINT_H ) +check_include_file( "stdlib.h" HAVE_STDLIB_H ) diff --git a/config.h.cmake b/config.h.cmake new file mode 100644 index 00000000..1f5376f8 --- /dev/null +++ b/config.h.cmake @@ -0,0 +1,23 @@ +#define VERSION "@VERSION@" + +// Defined if you have fvisibility and fvisibility-inlines-hidden support. +#cmakedefine __TDE_HAVE_GCC_VISIBILITY 1 + +// Define WORDS_BIGENDIAN to 1 if your processor stores words with the most +// significant byte first (like Motorola and SPARC, unlike Intel). +#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@ + +// Define lcms header +#cmakedefine LCMS_HEADER <@LCMS_HEADER@> + +// Defined if we have libgphoto2 2.5 +#cmakedefine HAVE_GPHOTO25 @HAVE_GPHOTO25@ + +// Defined if we have inttypes header +#cmakedefine HAVE_INTTYPES_H + +// Defined if we have stdint header +#cmakedefine HAVE_STDINT_H + +// Defined if we have stdlib header +#cmakedefine HAVE_STDLIB_H diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt new file mode 100644 index 00000000..1be22a44 --- /dev/null +++ b/data/CMakeLists.txt @@ -0,0 +1,5 @@ +##### subfolders + +add_subdirectory( about ) +add_subdirectory( profiles ) +add_subdirectory( themes ) diff --git a/data/about/CMakeLists.txt b/data/about/CMakeLists.txt new file mode 100644 index 00000000..aac58f7f --- /dev/null +++ b/data/about/CMakeLists.txt @@ -0,0 +1,8 @@ +install( + FILES + back.png box-bottom-left.png box-bottom-middle.png box-bottom-right.png box-center.png + box-middle-left.png box-middle-right.png box-top-left.png box-top-middle.png box-top-right.png + digikam.css kde_infopage.css kde_infopage_rtl.css main.html Makefile.am top-left.png + top-middle.png top-right-digikam.png + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/about +) diff --git a/data/profiles/CMakeLists.txt b/data/profiles/CMakeLists.txt new file mode 100644 index 00000000..5e7c9676 --- /dev/null +++ b/data/profiles/CMakeLists.txt @@ -0,0 +1,4 @@ +install( + FILES adobergb.icm applergb.icm srgb.icm srgb-d65.icm widegamut.icm prophoto.icm + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/profiles +) diff --git a/data/themes/CMakeLists.txt b/data/themes/CMakeLists.txt new file mode 100644 index 00000000..653d3f75 --- /dev/null +++ b/data/themes/CMakeLists.txt @@ -0,0 +1,4 @@ +install( + FILES Dreary Marine Clean OrangeCrush Sandy Dark Dessert Digikasa Gray Blue DLR Rose DarkRoom + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/themes +) diff --git a/icons/CMakeLists.txt b/icons/CMakeLists.txt new file mode 100644 index 00000000..3eb3ebaa --- /dev/null +++ b/icons/CMakeLists.txt @@ -0,0 +1,4 @@ +##### subfolders + +add_subdirectory( digikam ) +add_subdirectory( showfoto ) diff --git a/icons/digikam/CMakeLists.txt b/icons/digikam/CMakeLists.txt new file mode 100644 index 00000000..49b0d53d --- /dev/null +++ b/icons/digikam/CMakeLists.txt @@ -0,0 +1,2 @@ +tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/icons ) +tde_install_icons( app-digikam DESTINATION ${SHARE_INSTALL_PREFIX}/icons ) diff --git a/icons/showfoto/CMakeLists.txt b/icons/showfoto/CMakeLists.txt new file mode 100644 index 00000000..804380bc --- /dev/null +++ b/icons/showfoto/CMakeLists.txt @@ -0,0 +1,2 @@ +tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/showfoto/icons ) +tde_install_icons( app-showfoto DESTINATION ${SHARE_INSTALL_PREFIX}/icons ) diff --git a/pics/CMakeLists.txt b/pics/CMakeLists.txt new file mode 100644 index 00000000..3eb3ebaa --- /dev/null +++ b/pics/CMakeLists.txt @@ -0,0 +1,4 @@ +##### subfolders + +add_subdirectory( digikam ) +add_subdirectory( showfoto ) diff --git a/pics/digikam/CMakeLists.txt b/pics/digikam/CMakeLists.txt new file mode 100644 index 00000000..774ebf0b --- /dev/null +++ b/pics/digikam/CMakeLists.txt @@ -0,0 +1,29 @@ +install( + FILES + image-full.png image-selection.png histogram-lin.png histogram-log.png color-picker-black.png + color-picker-grey.png color-picker-white.png banner-digikam.png logo-gphoto.png logo-lcms.png + logo-exiv2.png logo-cimg.png centerwidth.png centerheight.png target.png bothvert.png + bothhorz.png curvefree.png curvemooth.png original.png duplicatebothvert.png + duplicatebothhorz.png togglemouseover.png rating.png worldmap.jpg menusidepixmap.png + zoom10.png zoom20.png zoom30.png indicator-gray.png indicator-green.png indicator-red.png + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/data +) + +install( + FILES + tag.png tag-new.png tag-properties.png tag-delete.png tag-reset.png tag-folder.png + tag-events.png tag-people.png tag-places.png tag-addressbook.png tag-recents.png + tag-assigned.png albumfolder-importimages.png albumfolder-properties.png + albumfolder-new.png albumfolder-importdir.png underexposure.png overexposure.png + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/icons/hicolor/32x32/actions +) + +install( + FILES digikam-splash.png + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +install( + FILES digikam.xpm digikam-16.xpm + DESTINATION ${SHARE_INSTALL_PREFIX}/pixmaps +) diff --git a/pics/showfoto/CMakeLists.txt b/pics/showfoto/CMakeLists.txt new file mode 100644 index 00000000..903571ee --- /dev/null +++ b/pics/showfoto/CMakeLists.txt @@ -0,0 +1,9 @@ +install( + FILES showfoto-splash.png menusidepixmap.png + DESTINATION ${DATA_INSTALL_DIR}/showfoto +) + +install( + FILES showfoto.xpm showfoto-16.xpm + DESTINATION ${SHARE_INSTALL_PREFIX}/pixmaps +) diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index b326219c..f1a95749 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,6 +1,6 @@ ##### create translation templates ############## tde_l10n_create_template( - CATALOG "messages/digikam" - SOURCES "." "tips" + CATALOG "messages/digikam" + SOURCES "." "tips" ) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 00000000..e46f42ff --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,36 @@ +include_directories( + ${CMAKE_SOURCE_DIR}/src/digikam + ${CMAKE_SOURCE_DIR}/src/libs/dimg + ${CMAKE_SOURCE_DIR}/src/libs/dmetadata + ${CMAKE_SOURCE_DIR}/src/libs/histogram + ${CMAKE_BINARY_DIR} + ${KDCRAW_INCLUDE_DIRS} + ${KEXIV2_INCLUDE_DIRS} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### subfolders + +add_subdirectory( libs ) +add_subdirectory( utilities ) +add_subdirectory( digikam ) +add_subdirectory( showfoto ) +add_subdirectory( tdeioslave ) +add_subdirectory( themedesigner ) +add_subdirectory( imageplugins ) + + +##### other files + +install( + FILES tips + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/digikam/CMakeLists.txt b/src/digikam/CMakeLists.txt new file mode 100644 index 00000000..aad19ff8 --- /dev/null +++ b/src/digikam/CMakeLists.txt @@ -0,0 +1,90 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/curves + ${CMAKE_SOURCE_DIR}/src/libs/dialogs + ${CMAKE_SOURCE_DIR}/src/libs/imageproperties + ${CMAKE_SOURCE_DIR}/src/libs/jpegutils + ${CMAKE_SOURCE_DIR}/src/libs/levels + ${CMAKE_SOURCE_DIR}/src/libs/sqlite2 + ${CMAKE_SOURCE_DIR}/src/libs/themeengine + ${CMAKE_SOURCE_DIR}/src/libs/thumbbar + ${CMAKE_SOURCE_DIR}/src/libs/threadimageio + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common + ${CMAKE_SOURCE_DIR}/src/libs/widgets/imageplugins + ${CMAKE_SOURCE_DIR}/src/utilities/batch + ${CMAKE_SOURCE_DIR}/src/utilities/cameragui + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/canvas + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/editor + ${CMAKE_SOURCE_DIR}/src/utilities/lighttable + ${CMAKE_SOURCE_DIR}/src/utilities/setup + ${CMAKE_SOURCE_DIR}/src/utilities/slideshow + ${CMAKE_BINARY_DIR}/src/libs/dialogs + ${GPHOTO2_INCLUDE_DIRS} + ${KIPI_INCLUDE_DIRS} +) + +set( SQLITE3_LIBRARIES "" ) +if( WITH_SQLITE3 ) + include_directories( ${CMAKE_SOURCE_DIR}/src/libs/sqlite3 ) + list( APPEND SQLITE3_LIBRARIES "sqlite3-static" ) +endif( ) + + +##### digikam library (shared) + +tde_add_library( digikam SHARED AUTOMOC + SOURCES + kdateedit.cpp metadatahub.cpp digikamapp.cpp album.cpp albumdb.cpp albumdb_sqlite2.cpp + albumicongroupitem.cpp albumiconitem.cpp albumiconview.cpp albumiconviewfilter.cpp + albumitemhandler.cpp albumfiletip.cpp albumfolderview.cpp albumhistory.cpp albumlister.cpp + albummanager.cpp albumpropsedit.cpp albumsettings.cpp albumthumbnailloader.cpp + albumwidgetstack.cpp cameralist.cpp cameratype.cpp datefolderview.cpp dcopiface.cpp + dcopiface.skel digikamfirstrun.cpp digikamview.cpp dio.cpp dragobjects.cpp firstrun.cpp + folderitem.cpp folderview.cpp iconview.cpp icongroupitem.cpp iconitem.cpp + imageattributeswatch.cpp imageinfo.cpp imagepreviewview.cpp kdatetimeedit.cpp + kdatepickerpopup.cpp kipiinterface.cpp mediaplayerview.cpp mimefilter.cpp monthwidget.cpp + pixmapmanager.cpp ratingfilter.cpp ratingpopupmenu.cpp ratingwidget.cpp scanlib.cpp + searchadvanceddialog.cpp searchfolderview.cpp searchquickdialog.cpp searchresultsview.cpp + searchresultsitem.cpp searchwidgets.cpp syncjob.cpp tageditdlg.cpp tagfilterview.cpp + tagfolderview.cpp tagspopupmenu.cpp timelinefolderview.cpp timelineview.cpp timelinewidget.cpp + upgradedb_sqlite2tosqlite3.cpp welcomepageview.cpp + LINK + sqlite2-static thumbbar-static themeengine-static dialog-static metadatawidgets-static + iccprofileswidgets-static imagepluginswidgets-static commonwidgets-static + jpegutils-static dimg-static imagepropertiesdigikam-static threadimageio-static + greycstoration-static batch-static slideshow-static cameragui-static + dimgcanvas-static dimgeditor-static setup-static lighttable-static + tdecore-shared tdeio-shared tdeabc-shared tdehtml-shared tdeparts-shared tdeutils-shared + ${SQLITE3_LIBRARIES} ${KEXIV2_LIBRARIES} ${KIPI_LIBRARIES} + VERSION 0.0.0 + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### digikam (executable) + +tde_add_executable( digikam AUTOMOC + SOURCES main.cpp + LINK + digikam-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdeutils-shared + ${KDCRAW_LIBRARIES} + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikam_export.h + DESTINATION ${INCLUDE_INSTALL_DIR} +) + +install( + FILES digikamui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikam.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) diff --git a/src/imageplugins/CMakeLists.txt b/src/imageplugins/CMakeLists.txt new file mode 100644 index 00000000..8b58495f --- /dev/null +++ b/src/imageplugins/CMakeLists.txt @@ -0,0 +1,44 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/curves + ${CMAKE_SOURCE_DIR}/src/libs/dialogs + ${CMAKE_SOURCE_DIR}/src/libs/dimg/filters + ${CMAKE_SOURCE_DIR}/src/libs/levels + ${CMAKE_SOURCE_DIR}/src/libs/whitebalance + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common + ${CMAKE_SOURCE_DIR}/src/libs/widgets/iccprofiles + ${CMAKE_SOURCE_DIR}/src/libs/widgets/imageplugins + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/canvas + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/editor +) + + +##### subfolders + +add_subdirectory( coreplugin ) +add_subdirectory( adjustcurves ) +add_subdirectory( adjustlevels ) +add_subdirectory( antivignetting ) +add_subdirectory( blurfx ) +add_subdirectory( border ) +add_subdirectory( channelmixer ) +add_subdirectory( charcoal ) +add_subdirectory( colorfx ) +add_subdirectory( distortionfx ) +add_subdirectory( emboss ) +add_subdirectory( filmgrain ) +add_subdirectory( freerotation ) +add_subdirectory( hotpixels ) +add_subdirectory( infrared ) +add_subdirectory( inpainting ) +add_subdirectory( inserttext ) +add_subdirectory( lensdistortion ) +add_subdirectory( noisereduction ) +add_subdirectory( oilpaint ) +add_subdirectory( perspective ) +add_subdirectory( raindrop ) +add_subdirectory( restoration ) +add_subdirectory( sheartool ) +add_subdirectory( superimpose ) +add_subdirectory( texture ) +add_subdirectory( whitebalance ) diff --git a/src/imageplugins/adjustcurves/CMakeLists.txt b/src/imageplugins/adjustcurves/CMakeLists.txt new file mode 100644 index 00000000..92fbc40d --- /dev/null +++ b/src/imageplugins/adjustcurves/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_adjustcurves (kpart) + +tde_add_kpart( digikamimageplugin_adjustcurves AUTOMOC + SOURCES imageplugin_adjustcurves.cpp adjustcurvestool.cpp + LINK digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_adjustcurves_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_adjustcurves.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/adjustlevels/CMakeLists.txt b/src/imageplugins/adjustlevels/CMakeLists.txt new file mode 100644 index 00000000..8dacb119 --- /dev/null +++ b/src/imageplugins/adjustlevels/CMakeLists.txt @@ -0,0 +1,27 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${KDCRAW_INCLUDE_DIRS} +) + + +##### digikamimageplugin_adjustlevels (kpart) + +tde_add_kpart( digikamimageplugin_adjustlevels AUTOMOC + SOURCES imageplugin_adjustlevels.cpp adjustlevelstool.cpp + LINK digikam-shared tdecore-shared tdeutils-shared ${KDCRAW_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_adjustlevels_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_adjustlevels.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/antivignetting/CMakeLists.txt b/src/imageplugins/antivignetting/CMakeLists.txt new file mode 100644 index 00000000..6cd22acb --- /dev/null +++ b/src/imageplugins/antivignetting/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_antivignetting (kpart) + +tde_add_kpart( digikamimageplugin_antivignetting AUTOMOC + SOURCES imageplugin_antivignetting.cpp antivignettingtool.cpp antivignetting.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_antivignetting_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_antivignetting.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/blurfx/CMakeLists.txt b/src/imageplugins/blurfx/CMakeLists.txt new file mode 100644 index 00000000..a0eb8052 --- /dev/null +++ b/src/imageplugins/blurfx/CMakeLists.txt @@ -0,0 +1,28 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_blurfx (kpart) + +tde_add_kpart( digikamimageplugin_blurfx AUTOMOC + SOURCES imageplugin_blurfx.cpp blurfxtool.cpp blurfx.cpp + LINK + dimgfilters-static dimg-static digikam-shared + tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_blurfx_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_blurfx.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/border/CMakeLists.txt b/src/imageplugins/border/CMakeLists.txt new file mode 100644 index 00000000..e9230ca0 --- /dev/null +++ b/src/imageplugins/border/CMakeLists.txt @@ -0,0 +1,31 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### subfolders + +add_subdirectory( patterns ) + + +##### digikamimageplugin_border (kpart) + +tde_add_kpart( digikamimageplugin_border AUTOMOC + SOURCES imageplugin_border.cpp bordertool.cpp border.cpp + LINK dimg-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_border_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_border.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/border/patterns/CMakeLists.txt b/src/imageplugins/border/patterns/CMakeLists.txt new file mode 100644 index 00000000..348a5816 --- /dev/null +++ b/src/imageplugins/border/patterns/CMakeLists.txt @@ -0,0 +1,8 @@ +install( + FILES + pine-pattern.png wood-pattern.png paper-pattern.png parque-pattern.png + ice-pattern.png leaf-pattern.png marble-pattern.png rain-pattern.png + craters-pattern.png dried-pattern.png pink-pattern.png stone-pattern.png + chalk-pattern.png granit-pattern.png rock-pattern.png wall-pattern.png + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/data +) diff --git a/src/imageplugins/channelmixer/CMakeLists.txt b/src/imageplugins/channelmixer/CMakeLists.txt new file mode 100644 index 00000000..77fcfacb --- /dev/null +++ b/src/imageplugins/channelmixer/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_channelmixer (kpart) + +tde_add_kpart( digikamimageplugin_channelmixer AUTOMOC + SOURCES imageplugin_channelmixer.cpp channelmixertool.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_channelmixer_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_channelmixer.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/charcoal/CMakeLists.txt b/src/imageplugins/charcoal/CMakeLists.txt new file mode 100644 index 00000000..5758cc14 --- /dev/null +++ b/src/imageplugins/charcoal/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_charcoal (kpart) + +tde_add_kpart( digikamimageplugin_charcoal AUTOMOC + SOURCES imageplugin_charcoal.cpp charcoaltool.cpp charcoal.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_charcoal_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_charcoal.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/colorfx/CMakeLists.txt b/src/imageplugins/colorfx/CMakeLists.txt new file mode 100644 index 00000000..26ffe375 --- /dev/null +++ b/src/imageplugins/colorfx/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_colorfx (kpart) + +tde_add_kpart( digikamimageplugin_colorfx AUTOMOC + SOURCES imageplugin_colorfx.cpp colorfxtool.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_colorfx_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_colorfx.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/coreplugin/CMakeLists.txt b/src/imageplugins/coreplugin/CMakeLists.txt new file mode 100644 index 00000000..85110f77 --- /dev/null +++ b/src/imageplugins/coreplugin/CMakeLists.txt @@ -0,0 +1,41 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/hsl + ${CMAKE_CURRENT_SOURCE_DIR}/ratiocrop + ${CMAKE_CURRENT_SOURCE_DIR}/sharpnesseditor + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### subfolders + +add_subdirectory( hsl ) +add_subdirectory( ratiocrop ) +add_subdirectory( sharpnesseditor ) + + +##### digikamimageplugin_core (kpart) + +tde_add_kpart( digikamimageplugin_core AUTOMOC + SOURCES + imageplugin_core.cpp bwsepiatool.cpp autocorrectiontool.cpp rgbtool.cpp redeyetool.cpp + blurtool.cpp iccprooftool.cpp bcgtool.cpp + LINK + sharpnesseditor-static hsl-static ratiocrop-static dimg-static dimgeditor-static + curves-static commonwidgets-static imagepluginswidgets-static digikam-shared + tdecore-shared tdeutils-shared ${KEXIV2_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_core_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_core.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/coreplugin/hsl/CMakeLists.txt b/src/imageplugins/coreplugin/hsl/CMakeLists.txt new file mode 100644 index 00000000..37a90b6a --- /dev/null +++ b/src/imageplugins/coreplugin/hsl/CMakeLists.txt @@ -0,0 +1,11 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### hsl (static) + +tde_add_library( hsl STATIC_PIC AUTOMOC + SOURCES hsltool.cpp hspreviewwidget.cpp +) diff --git a/src/imageplugins/coreplugin/ratiocrop/CMakeLists.txt b/src/imageplugins/coreplugin/ratiocrop/CMakeLists.txt new file mode 100644 index 00000000..ca24d31f --- /dev/null +++ b/src/imageplugins/coreplugin/ratiocrop/CMakeLists.txt @@ -0,0 +1,11 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### ratiocrop (static) + +tde_add_library( ratiocrop STATIC_PIC AUTOMOC + SOURCES ratiocroptool.cpp imageselectionwidget.cpp +) diff --git a/src/imageplugins/coreplugin/sharpnesseditor/CMakeLists.txt b/src/imageplugins/coreplugin/sharpnesseditor/CMakeLists.txt new file mode 100644 index 00000000..38dfff10 --- /dev/null +++ b/src/imageplugins/coreplugin/sharpnesseditor/CMakeLists.txt @@ -0,0 +1,18 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/clapack + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### subfolders + +add_subdirectory( clapack ) + + +##### sharpnesseditor (static) + +tde_add_library( sharpnesseditor STATIC_PIC AUTOMOC + SOURCES sharpentool.cpp unsharp.cpp matrix.cpp refocus.cpp + LINK lapack-static +) diff --git a/src/imageplugins/coreplugin/sharpnesseditor/clapack/CMakeLists.txt b/src/imageplugins/coreplugin/sharpnesseditor/clapack/CMakeLists.txt new file mode 100644 index 00000000..6a8a7c11 --- /dev/null +++ b/src/imageplugins/coreplugin/sharpnesseditor/clapack/CMakeLists.txt @@ -0,0 +1,9 @@ + +##### lapack (static) + +tde_add_library( lapack STATIC_PIC AUTOMOC + SOURCES + abort_.c dgesv.c dlaswp.c endfile.c idamax.c open.c sig_die.c wref.c close.c dgetf2.c dscal.c + err.c ieeeck.c s_cmp.c s_stop.c wrtfmt.c dgemm.c dgetrf.c dswap.c fmt.c ilaenv.c s_copy.c wsfe.c + dger.c dgetrs.c dtrsm.c fmtlib.c lsame.c sfe.c util.c xerbla.c +) diff --git a/src/imageplugins/distortionfx/CMakeLists.txt b/src/imageplugins/distortionfx/CMakeLists.txt new file mode 100644 index 00000000..c0ed4d97 --- /dev/null +++ b/src/imageplugins/distortionfx/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_distortionfx (kpart) + +tde_add_kpart( digikamimageplugin_distortionfx AUTOMOC + SOURCES imageplugin_distortionfx.cpp distortionfxtool.cpp distortionfx.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_distortionfx_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_distortionfx.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/emboss/CMakeLists.txt b/src/imageplugins/emboss/CMakeLists.txt new file mode 100644 index 00000000..c9a97db6 --- /dev/null +++ b/src/imageplugins/emboss/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_emboss (kpart) + +tde_add_kpart( digikamimageplugin_emboss AUTOMOC + SOURCES imageplugin_emboss.cpp embosstool.cpp emboss.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_emboss_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_emboss.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/filmgrain/CMakeLists.txt b/src/imageplugins/filmgrain/CMakeLists.txt new file mode 100644 index 00000000..860eeffc --- /dev/null +++ b/src/imageplugins/filmgrain/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_filmgrain (kpart) + +tde_add_kpart( digikamimageplugin_filmgrain AUTOMOC + SOURCES imageplugin_filmgrain.cpp filmgraintool.cpp filmgrain.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_filmgrain_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_filmgrain.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/freerotation/CMakeLists.txt b/src/imageplugins/freerotation/CMakeLists.txt new file mode 100644 index 00000000..ce4ac074 --- /dev/null +++ b/src/imageplugins/freerotation/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_freerotation (kpart) + +tde_add_kpart( digikamimageplugin_freerotation AUTOMOC + SOURCES imageplugin_freerotation.cpp freerotationtool.cpp freerotation.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_freerotation_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_freerotation.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/hotpixels/CMakeLists.txt b/src/imageplugins/hotpixels/CMakeLists.txt new file mode 100644 index 00000000..efc2aec2 --- /dev/null +++ b/src/imageplugins/hotpixels/CMakeLists.txt @@ -0,0 +1,29 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/threadimageio +) + + +##### digikamimageplugin_hotpixels (kpart) + +tde_add_kpart( digikamimageplugin_hotpixels AUTOMOC + SOURCES + blackframeparser.cpp weights.cpp hotpixelfixer.cpp imageplugin_hotpixels.cpp + blackframelistview.cpp hotpixelstool.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_hotpixels_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_hotpixels.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/hotpixels/hotpixelfixer.cpp b/src/imageplugins/hotpixels/hotpixelfixer.cpp index d29b8525..e1344dda 100644 --- a/src/imageplugins/hotpixels/hotpixelfixer.cpp +++ b/src/imageplugins/hotpixels/hotpixelfixer.cpp @@ -40,10 +40,8 @@ #include "hotpixelfixer.h" #ifdef HAVE_FLOAT_H -#if HAVE_FLOAT_H # include <float.h> #endif -#endif #ifndef DBL_MIN # define DBL_MIN 1e-37 diff --git a/src/imageplugins/infrared/CMakeLists.txt b/src/imageplugins/infrared/CMakeLists.txt new file mode 100644 index 00000000..f87a9017 --- /dev/null +++ b/src/imageplugins/infrared/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_infrared (kpart) + +tde_add_kpart( digikamimageplugin_infrared AUTOMOC + SOURCES imageplugin_infrared.cpp infraredtool.cpp infrared.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_infrared_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_infrared.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/inpainting/CMakeLists.txt b/src/imageplugins/inpainting/CMakeLists.txt new file mode 100644 index 00000000..fb11dd8b --- /dev/null +++ b/src/imageplugins/inpainting/CMakeLists.txt @@ -0,0 +1,27 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/greycstoration +) + + +##### digikamimageplugin_inpainting (kpart) + +tde_add_kpart( digikamimageplugin_inpainting AUTOMOC + SOURCES imageplugin_inpainting.cpp inpaintingtool.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_inpainting_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_inpainting.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/inserttext/CMakeLists.txt b/src/imageplugins/inserttext/CMakeLists.txt new file mode 100644 index 00000000..3879abde --- /dev/null +++ b/src/imageplugins/inserttext/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_inserttext (kpart) + +tde_add_kpart( digikamimageplugin_inserttext AUTOMOC + SOURCES imageplugin_inserttext.cpp inserttextwidget.cpp inserttexttool.cpp fontchooserwidget.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_inserttext_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_inserttext.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/lensdistortion/CMakeLists.txt b/src/imageplugins/lensdistortion/CMakeLists.txt new file mode 100644 index 00000000..2dd66f23 --- /dev/null +++ b/src/imageplugins/lensdistortion/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_lensdistortion (kpart) + +tde_add_kpart( digikamimageplugin_lensdistortion AUTOMOC + SOURCES imageplugin_lensdistortion.cpp lensdistortiontool.cpp lensdistortion.cpp pixelaccess.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_lensdistortion_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_lensdistortion.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/noisereduction/CMakeLists.txt b/src/imageplugins/noisereduction/CMakeLists.txt new file mode 100644 index 00000000..5eb5b947 --- /dev/null +++ b/src/imageplugins/noisereduction/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_noisereduction (kpart) + +tde_add_kpart( digikamimageplugin_noisereduction AUTOMOC + SOURCES imageplugin_noisereduction.cpp noisereductiontool.cpp noisereduction.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_noisereduction_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_noisereduction.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/oilpaint/CMakeLists.txt b/src/imageplugins/oilpaint/CMakeLists.txt new file mode 100644 index 00000000..6fcb06d0 --- /dev/null +++ b/src/imageplugins/oilpaint/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_oilpaint (kpart) + +tde_add_kpart( digikamimageplugin_oilpaint AUTOMOC + SOURCES imageplugin_oilpaint.cpp oilpainttool.cpp oilpaint.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_oilpaint_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_oilpaint.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/perspective/CMakeLists.txt b/src/imageplugins/perspective/CMakeLists.txt new file mode 100644 index 00000000..92e11cb2 --- /dev/null +++ b/src/imageplugins/perspective/CMakeLists.txt @@ -0,0 +1,27 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_perspective (kpart) + +tde_add_kpart( digikamimageplugin_perspective AUTOMOC + SOURCES + imageplugin_perspective.cpp perspectivetool.cpp perspectivewidget.cpp triangle.cpp matrix.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_perspective_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_perspective.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/raindrop/CMakeLists.txt b/src/imageplugins/raindrop/CMakeLists.txt new file mode 100644 index 00000000..e0467e0a --- /dev/null +++ b/src/imageplugins/raindrop/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_raindrop (kpart) + +tde_add_kpart( digikamimageplugin_raindrop AUTOMOC + SOURCES imageplugin_raindrop.cpp raindroptool.cpp raindrop.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_raindrop_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_raindrop.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/restoration/CMakeLists.txt b/src/imageplugins/restoration/CMakeLists.txt new file mode 100644 index 00000000..8fab08f6 --- /dev/null +++ b/src/imageplugins/restoration/CMakeLists.txt @@ -0,0 +1,27 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/greycstoration +) + + +##### digikamimageplugin_restoration (kpart) + +tde_add_kpart( digikamimageplugin_restoration AUTOMOC + SOURCES imageplugin_restoration.cpp restorationtool.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_restoration_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_restoration.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/sheartool/CMakeLists.txt b/src/imageplugins/sheartool/CMakeLists.txt new file mode 100644 index 00000000..cb16491c --- /dev/null +++ b/src/imageplugins/sheartool/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_sheartool (kpart) + +tde_add_kpart( digikamimageplugin_sheartool AUTOMOC + SOURCES imageplugin_sheartool.cpp sheartool.cpp shear.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_sheartool_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_sheartool.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/superimpose/CMakeLists.txt b/src/imageplugins/superimpose/CMakeLists.txt new file mode 100644 index 00000000..aa75a403 --- /dev/null +++ b/src/imageplugins/superimpose/CMakeLists.txt @@ -0,0 +1,29 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/thumbbar +) + + +##### digikamimageplugin_superimpose (kpart) + +tde_add_kpart( digikamimageplugin_superimpose AUTOMOC + SOURCES + superimposewidget.cpp superimpose.cpp dirselectwidget.cpp imageplugin_superimpose.cpp + superimposetool.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_superimpose_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_superimpose.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/texture/CMakeLists.txt b/src/imageplugins/texture/CMakeLists.txt new file mode 100644 index 00000000..3559b8a5 --- /dev/null +++ b/src/imageplugins/texture/CMakeLists.txt @@ -0,0 +1,31 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### subfolders + +add_subdirectory( patterns ) + + +##### digikamimageplugin_texture (kpart) + +tde_add_kpart( digikamimageplugin_texture AUTOMOC + SOURCES imageplugin_texture.cpp texturetool.cpp texture.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_texture_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_texture.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/imageplugins/texture/patterns/CMakeLists.txt b/src/imageplugins/texture/patterns/CMakeLists.txt new file mode 100644 index 00000000..067b04a1 --- /dev/null +++ b/src/imageplugins/texture/patterns/CMakeLists.txt @@ -0,0 +1,8 @@ +install( + FILES + bricks2-texture.png bricks-texture.png burlap-texture.png canvas-texture.png + marble2-texture.png marble-texture.png paper-texture.png stone-texture.png + fabric-texture.png paper2-texture.png bluejean-texture.png cellwood-texture.png + metalwire-texture.png modern-texture.png wall-texture.png moss-texture.png + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/data +) diff --git a/src/imageplugins/whitebalance/CMakeLists.txt b/src/imageplugins/whitebalance/CMakeLists.txt new file mode 100644 index 00000000..d86db1e3 --- /dev/null +++ b/src/imageplugins/whitebalance/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### digikamimageplugin_whitebalance (kpart) + +tde_add_kpart( digikamimageplugin_whitebalance AUTOMOC + SOURCES imageplugin_whitebalance.cpp whitebalancetool.cpp + LINK dimgfilters-static digikam-shared tdecore-shared tdeutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES digikamimageplugin_whitebalance_ui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin_whitebalance.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/libs/CMakeLists.txt b/src/libs/CMakeLists.txt new file mode 100644 index 00000000..1e5c270d --- /dev/null +++ b/src/libs/CMakeLists.txt @@ -0,0 +1,19 @@ +##### subfolders + +add_subdirectory( sqlite2 ) +tde_conditional_add_subdirectory( WITH_SQLITE3 sqlite3 ) +add_subdirectory( lprof ) +add_subdirectory( histogram ) +add_subdirectory( levels ) +add_subdirectory( curves ) +add_subdirectory( whitebalance ) +add_subdirectory( dmetadata ) +add_subdirectory( dimg ) +add_subdirectory( threadimageio ) +add_subdirectory( themeengine ) +add_subdirectory( widgets ) +add_subdirectory( greycstoration ) +add_subdirectory( thumbbar ) +add_subdirectory( jpegutils ) +add_subdirectory( imageproperties ) +add_subdirectory( dialogs ) diff --git a/src/libs/curves/CMakeLists.txt b/src/libs/curves/CMakeLists.txt new file mode 100644 index 00000000..843f65a7 --- /dev/null +++ b/src/libs/curves/CMakeLists.txt @@ -0,0 +1,14 @@ +##### curves library (static) + +tde_add_library( curves STATIC_PIC + SOURCES imagecurves.cpp + LINK histogram-static tdecore-shared +) + + +##### other files + +install( + FILES imagecurves.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/libs/dialogs/CMakeLists.txt b/src/libs/dialogs/CMakeLists.txt new file mode 100644 index 00000000..6d80a8a8 --- /dev/null +++ b/src/libs/dialogs/CMakeLists.txt @@ -0,0 +1,36 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/dimg/filters + ${CMAKE_SOURCE_DIR}/src/libs/thumbbar + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common + ${CMAKE_SOURCE_DIR}/src/libs/widgets/metadata + ${CMAKE_SOURCE_DIR}/src/libs/widgets/iccprofiles + ${CMAKE_SOURCE_DIR}/src/libs/widgets/imageplugins + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/canvas +) + + +##### dialog library (static) + +tde_add_library( dialog STATIC_PIC AUTOMOC + SOURCES + deletedialogbase.ui imagedialog.cpp rawcameradlg.cpp iccprofileinfodlg.cpp + deletedialog.cpp dprogressdlg.cpp + LINK + tdecore-shared +) + +##### dialogshowfoto library (static) + +tde_add_library( dialogshowfoto STATIC_PIC AUTOMOC + SOURCES iccprofileinfodlg.cpp imagedialog.cpp rawcameradlg.cpp + LINK tdecore-shared +) + + +##### other files + +install( + FILES iccprofileinfodlg.h dprogressdlg.h imagedialog.h rawcameradlg.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/libs/dimg/CMakeLists.txt b/src/libs/dimg/CMakeLists.txt new file mode 100644 index 00000000..5cfb59bb --- /dev/null +++ b/src/libs/dimg/CMakeLists.txt @@ -0,0 +1,29 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR}/filters + ${CMAKE_CURRENT_SOURCE_DIR}/loaders +) + + +##### subfolders + +add_subdirectory( loaders ) +add_subdirectory( filters ) + + +##### dimg library (static) + +tde_add_library( dimg STATIC_PIC + SOURCES dimg.cpp dimgscale.cpp dcolor.cpp dcolorcomposer.cpp ddebug.cpp + LINK + histogram-static levels-static curves-static whitebalance-static + dimgloaders-static dimgfilters-static dmetadata-static + tdecore-shared ${KDCRAW_LIBRARIES} ${LCMS_LIBRARIES} +) + + +##### other files + +install( + FILES dimg.h dcolor.h dcolorpixelaccess.h dcolorcomposer.h dcolorblend.h ddebug.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/libs/dimg/filters/CMakeLists.txt b/src/libs/dimg/filters/CMakeLists.txt new file mode 100644 index 00000000..5e0646f9 --- /dev/null +++ b/src/libs/dimg/filters/CMakeLists.txt @@ -0,0 +1,24 @@ +include_directories( + ${CMAKE_SOURCE_DIR}/src/libs/levels +) + + +##### dimgfilters library (static) + +tde_add_library( dimgfilters STATIC_PIC + SOURCES + bcgmodifier.cpp hslmodifier.cpp icctransform.cpp dimgimagefilters.cpp dimgthreadedfilter.cpp + dimggaussianblur.cpp dimgsharpen.cpp colormodifier.cpp + LINK + dimg-static histogram-static tdecore-shared +) + + +##### other files + +install( + FILES + bcgmodifier.h hslmodifier.h dimgthreadedfilter.h dimgimagefilters.h + icctransform.h colormodifier.h dimgsharpen.h dimggaussianblur.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/libs/dimg/loaders/CMakeLists.txt b/src/libs/dimg/loaders/CMakeLists.txt new file mode 100644 index 00000000..e880e579 --- /dev/null +++ b/src/libs/dimg/loaders/CMakeLists.txt @@ -0,0 +1,20 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/curves + ${CMAKE_SOURCE_DIR}/src/libs/dimg/filters + ${CMAKE_SOURCE_DIR}/src/libs/levels + ${CMAKE_SOURCE_DIR}/src/libs/whitebalance +) + + +##### dimgloaders library (static) + +tde_add_library( dimgloaders STATIC_PIC AUTOMOC + SOURCES + dimgloader.cpp pngloader.cpp jpegloader.cpp tiffloader.cpp rawloader.cpp ppmloader.cpp + qimageloader.cpp iccjpeg.c jp2kloader.cpp jpegsettings.cpp pngsettings.cpp tiffsettings.cpp + jp2ksettings.cpp + LINK + curves-static dimgfilters-static histogram-static levels-static whitebalance-static tdecore-shared + ${JASPER_LIBRARIES} ${JPEG_LIBRARIES} ${PNG_LIBRARIES} ${TIFF_LIBRARIES} +) diff --git a/src/libs/dmetadata/CMakeLists.txt b/src/libs/dmetadata/CMakeLists.txt new file mode 100644 index 00000000..a5ed88b7 --- /dev/null +++ b/src/libs/dmetadata/CMakeLists.txt @@ -0,0 +1,14 @@ +##### dmetadata library (static) + +tde_add_library( dmetadata STATIC_PIC + SOURCES dmetadata.cpp + LINK dimg-static histogram-static tdecore-shared ${KEXIV2_LIBRARIES} +) + + +##### other files + +install( + FILES dmetadata.h photoinfocontainer.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/libs/greycstoration/CMakeLists.txt b/src/libs/greycstoration/CMakeLists.txt new file mode 100644 index 00000000..309ad51a --- /dev/null +++ b/src/libs/greycstoration/CMakeLists.txt @@ -0,0 +1,20 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/dimg/filters +) + + +##### greycstoration library (static) + +tde_add_library( greycstoration STATIC_PIC AUTOMOC + SOURCES greycstorationiface.cpp greycstorationwidget.cpp + LINK dimgfilters-static histogram-static tdecore-shared +) + + +##### other files + +install( + FILES greycstorationiface.h greycstorationwidget.h greycstorationsettings.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/libs/histogram/CMakeLists.txt b/src/libs/histogram/CMakeLists.txt new file mode 100644 index 00000000..7f7edbb9 --- /dev/null +++ b/src/libs/histogram/CMakeLists.txt @@ -0,0 +1,14 @@ +##### histogram library (static) + +tde_add_library( histogram STATIC_PIC + SOURCES imagehistogram.cpp + LINK tdecore-shared +) + + +##### other files + +install( + FILES imagehistogram.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/libs/imageproperties/CMakeLists.txt b/src/libs/imageproperties/CMakeLists.txt new file mode 100644 index 00000000..81bd7fb8 --- /dev/null +++ b/src/libs/imageproperties/CMakeLists.txt @@ -0,0 +1,42 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/dialogs + ${CMAKE_SOURCE_DIR}/src/libs/themeengine + ${CMAKE_SOURCE_DIR}/src/libs/threadimageio + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common + ${CMAKE_SOURCE_DIR}/src/libs/widgets/metadata + ${CMAKE_SOURCE_DIR}/src/libs/widgets/iccprofiles + ${CMAKE_SOURCE_DIR}/src/utilities/batch + ${CMAKE_SOURCE_DIR}/src/utilities/cameragui +) + + +##### imagepropertiesdigikam library (static) + +tde_add_library( imagepropertiesdigikam STATIC_PIC AUTOMOC + SOURCES + imagedescedittab.cpp imagepropertiessidebar.cpp imagepropertiessidebardb.cpp talbumlistview.cpp + imagepropertiesmetadatatab.cpp imagepropertiescolorstab.cpp navigatebarwidget.cpp + imagepropertiestab.cpp navigatebartab.cpp + LINK + histogram-static commonwidgets-static iccprofileswidgets-static tdecore-shared +) + +##### imagepropertiesshowfoto library (static) + +tde_add_library( imagepropertiesshowfoto STATIC_PIC AUTOMOC + SOURCES + imagepropertiessidebar.cpp navigatebarwidget.cpp imagepropertiesmetadatatab.cpp + imagepropertiescolorstab.cpp imagepropertiestab.cpp navigatebartab.cpp + LINK + metadatawidgets-static iccprofileswidgets-static imagepluginswidgets-static + commonwidgets-static dmetadata-static dimg-static threadimageio-static + histogram-static tdecore-shared +) + +##### imagepropertiescamgui library (static) + +tde_add_library( imagepropertiescamgui STATIC_PIC AUTOMOC + SOURCES imagepropertiessidebarcamgui.cpp cameraitempropertiestab.cpp + LINK tdecore-shared +) diff --git a/src/libs/jpegutils/CMakeLists.txt b/src/libs/jpegutils/CMakeLists.txt new file mode 100644 index 00000000..338f2036 --- /dev/null +++ b/src/libs/jpegutils/CMakeLists.txt @@ -0,0 +1,6 @@ +##### jpegutils library (static) + +tde_add_library( jpegutils STATIC_PIC + SOURCES jpegutils.cpp transupp.cpp + LINK tdecore-shared ${JPEG_LIBRARIES} +) diff --git a/src/libs/levels/CMakeLists.txt b/src/libs/levels/CMakeLists.txt new file mode 100644 index 00000000..6d809574 --- /dev/null +++ b/src/libs/levels/CMakeLists.txt @@ -0,0 +1,14 @@ +##### levels library (static) + +tde_add_library( levels STATIC_PIC + SOURCES imagelevels.cpp + LINK histogram-static tdecore-shared +) + + +##### other files + +install( + FILES imagelevels.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/libs/lprof/CMakeLists.txt b/src/libs/lprof/CMakeLists.txt new file mode 100644 index 00000000..92410201 --- /dev/null +++ b/src/libs/lprof/CMakeLists.txt @@ -0,0 +1,7 @@ +##### lprof library (static) + +tde_add_library( lprof STATIC_PIC + SOURCES + cmshull.cpp cmslm.cpp cmslnr.cpp cmsmatn.cpp cmsmkmsh.cpp cmsmntr.cpp + cmsoutl.cpp cmspcoll.cpp cmsprf.cpp cmsreg.cpp cmsscn.cpp cmssheet.cpp +) diff --git a/src/libs/sqlite2/CMakeLists.txt b/src/libs/sqlite2/CMakeLists.txt new file mode 100644 index 00000000..98c91154 --- /dev/null +++ b/src/libs/sqlite2/CMakeLists.txt @@ -0,0 +1,9 @@ +##### sqlite2 library (static) + +tde_add_library( sqlite2 STATIC_PIC + SOURCES + attach.c auth.c btree.c btree_rb.c build.c copy.c date.c delete.c encode.c expr.c func.c hash.c + insert.c main.c opcodes.c os.c pager.c parse.c pragma.c printf.c random.c select.c shell.c + table.c tokenize.c trigger.c update.c util.c vacuum.c vdbe.c vdbeaux.c where.c + LINK pthread +) diff --git a/src/libs/sqlite3/CMakeLists.txt b/src/libs/sqlite3/CMakeLists.txt new file mode 100644 index 00000000..bc558711 --- /dev/null +++ b/src/libs/sqlite3/CMakeLists.txt @@ -0,0 +1,6 @@ +##### sqlite3 library (static) + +tde_add_library( sqlite3 STATIC_PIC + SOURCES sqlite3.c + LINK pthread +) diff --git a/src/libs/themeengine/CMakeLists.txt b/src/libs/themeengine/CMakeLists.txt new file mode 100644 index 00000000..9632df83 --- /dev/null +++ b/src/libs/themeengine/CMakeLists.txt @@ -0,0 +1,11 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### themeengine library (static) + +tde_add_library( themeengine STATIC_PIC AUTOMOC + SOURCES theme.cpp themeengine.cpp texture.cpp + LINK histogram-static tdecore-shared +) diff --git a/src/libs/threadimageio/CMakeLists.txt b/src/libs/threadimageio/CMakeLists.txt new file mode 100644 index 00000000..681286af --- /dev/null +++ b/src/libs/threadimageio/CMakeLists.txt @@ -0,0 +1,17 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/dimg/loaders + ${CMAKE_SOURCE_DIR}/src/libs/jpegutils +) + + +##### threadimageio library (static) + +tde_add_library( threadimageio STATIC_PIC AUTOMOC + SOURCES + loadsavethread.cpp managedloadsavethread.cpp sharedloadsavethread.cpp previewloadthread.cpp + loadingdescription.cpp loadsavetask.cpp previewtask.cpp loadingcache.cpp + loadingcacheinterface.cpp + LINK + tdecore-shared +) diff --git a/src/libs/thumbbar/CMakeLists.txt b/src/libs/thumbbar/CMakeLists.txt new file mode 100644 index 00000000..338fd181 --- /dev/null +++ b/src/libs/thumbbar/CMakeLists.txt @@ -0,0 +1,19 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### thumbbar library (static) + +tde_add_library( thumbbar STATIC_PIC AUTOMOC + SOURCES thumbbar.cpp thumbnailjob.cpp + LINK tdecore-shared +) + + +##### other files + +install( + FILES thumbbar.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/libs/whitebalance/CMakeLists.txt b/src/libs/whitebalance/CMakeLists.txt new file mode 100644 index 00000000..8cb43561 --- /dev/null +++ b/src/libs/whitebalance/CMakeLists.txt @@ -0,0 +1,14 @@ +##### whitebalance library (static) + +tde_add_library( whitebalance STATIC_PIC + SOURCES whitebalance.cpp + LINK histogram-static tdecore-shared +) + + +##### other files + +install( + FILES whitebalance.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/libs/widgets/CMakeLists.txt b/src/libs/widgets/CMakeLists.txt new file mode 100644 index 00000000..b9c0301e --- /dev/null +++ b/src/libs/widgets/CMakeLists.txt @@ -0,0 +1,6 @@ +##### subfolders + +add_subdirectory( common ) +add_subdirectory( iccprofiles ) +add_subdirectory( imageplugins ) +add_subdirectory( metadata ) diff --git a/src/libs/widgets/common/CMakeLists.txt b/src/libs/widgets/common/CMakeLists.txt new file mode 100644 index 00000000..c72bc242 --- /dev/null +++ b/src/libs/widgets/common/CMakeLists.txt @@ -0,0 +1,29 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/curves + ${CMAKE_SOURCE_DIR}/src/libs/dimg/loaders +) + + +##### commonwidgets library (static) + +tde_add_library( commonwidgets STATIC_PIC AUTOMOC + SOURCES + histogramwidget.cpp colorgradientwidget.cpp curveswidget.cpp dlogoaction.cpp sidebar.cpp + squeezedcombobox.cpp filesaveoptionsbox.cpp dpopupmenu.cpp statuszoombar.cpp + statusnavigatebar.cpp statusprogressbar.cpp searchtextbar.cpp dcursortracker.cpp + paniconwidget.cpp previewwidget.cpp splashscreen.cpp statusled.cpp + LINK + tdecore-shared tdeui-shared +) + + +##### other files + +install( + FILES + histogramwidget.h colorgradientwidget.h curveswidget.h sidebar.h dlogoaction.h + squeezedcombobox.h dpopupmenu.h statuszoombar.h statusnavigatebar.h searchtextbar.h + statusprogressbar.h dcursortracker.h paniconwidget.h previewwidget.h statusled.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/libs/widgets/common/dlogoaction.cpp b/src/libs/widgets/common/dlogoaction.cpp index 60cfd77f..73bf4b7d 100644 --- a/src/libs/widgets/common/dlogoaction.cpp +++ b/src/libs/widgets/common/dlogoaction.cpp @@ -39,6 +39,7 @@ #include "daboutdata.h" #include "dlogoaction.h" +#include "dlogoaction.moc" namespace Digikam { diff --git a/src/libs/widgets/iccprofiles/CMakeLists.txt b/src/libs/widgets/iccprofiles/CMakeLists.txt new file mode 100644 index 00000000..a17a9ab1 --- /dev/null +++ b/src/libs/widgets/iccprofiles/CMakeLists.txt @@ -0,0 +1,22 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/lprof + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common + ${CMAKE_SOURCE_DIR}/src/libs/widgets/metadata +) + + +##### iccprofileswidgets library (static) + +tde_add_library( iccprofileswidgets STATIC_PIC AUTOMOC + SOURCES iccprofilewidget.cpp cietonguewidget.cpp iccpreviewwidget.cpp + LINK lprof-static metadatawidgets-static tdecore-shared +) + + +##### other files + +install( + FILES cietonguewidget.h iccprofilewidget.h iccpreviewwidget.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/libs/widgets/imageplugins/CMakeLists.txt b/src/libs/widgets/imageplugins/CMakeLists.txt new file mode 100644 index 00000000..a3c77983 --- /dev/null +++ b/src/libs/widgets/imageplugins/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/editor +) + + +##### imagepluginswidgets library (static) + +tde_add_library( imagepluginswidgets STATIC_PIC AUTOMOC + SOURCES + imageregionwidget.cpp imagepaniconwidget.cpp imageguidewidget.cpp imagewidget.cpp + listboxpreviewitem.cpp imagepanelwidget.cpp + LINK + dimgeditor-static tdecore-shared +) + + +##### other files + +install( + FILES + imageregionwidget.h imagepaniconwidget.h imagepanelwidget.h imageguidewidget.h + listboxpreviewitem.h imagewidget.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/libs/widgets/metadata/CMakeLists.txt b/src/libs/widgets/metadata/CMakeLists.txt new file mode 100644 index 00000000..9c7b5488 --- /dev/null +++ b/src/libs/widgets/metadata/CMakeLists.txt @@ -0,0 +1,16 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/themeengine + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common +) + + +##### metadatawidgets library (static) + +tde_add_library( metadatawidgets STATIC_PIC AUTOMOC + SOURCES + metadatalistview.cpp metadatalistviewitem.cpp metadatawidget.cpp iptcwidget.cpp exifwidget.cpp + mdkeylistviewitem.cpp makernotewidget.cpp gpswidget.cpp worldmapwidget.cpp + LINK + tdecore-shared +) diff --git a/src/showfoto/CMakeLists.txt b/src/showfoto/CMakeLists.txt new file mode 100644 index 00000000..618eafb8 --- /dev/null +++ b/src/showfoto/CMakeLists.txt @@ -0,0 +1,45 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/setup + ${CMAKE_SOURCE_DIR}/src/libs/dialogs + ${CMAKE_SOURCE_DIR}/src/libs/imageproperties + ${CMAKE_SOURCE_DIR}/src/libs/themeengine + ${CMAKE_SOURCE_DIR}/src/libs/thumbbar + ${CMAKE_SOURCE_DIR}/src/libs/threadimageio + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/canvas + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/editor + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/tools + ${CMAKE_SOURCE_DIR}/src/utilities/slideshow + ${CMAKE_SOURCE_DIR}/src/utilities/setup +) + + +##### subfolders + +add_subdirectory( setup ) + + +##### showfoto (executable) + +tde_add_executable( showfoto AUTOMOC + SOURCES main.cpp showfoto.cpp + LINK + imagepropertiesshowfoto-static jpegutils-static showfoto-static showfotosetupinternal-static + slideshow-static themeengine-static threadimageio-static thumbbar-static + tdeparts-shared tdeutils-shared ${KDCRAW_LIBRARIES} ${KEXIV2_LIBRARIES} + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES showfotoui.rc + DESTINATION ${DATA_INSTALL_DIR}/showfoto +) + +tde_create_translated_desktop( + SOURCE showfoto.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) diff --git a/src/showfoto/setup/CMakeLists.txt b/src/showfoto/setup/CMakeLists.txt new file mode 100644 index 00000000..3755aa43 --- /dev/null +++ b/src/showfoto/setup/CMakeLists.txt @@ -0,0 +1,12 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/utilities/setup +) + + +##### showfotosetupinternal library (static) + +tde_add_library( showfotosetupinternal STATIC_PIC AUTOMOC + SOURCES setup.cpp setupeditor.cpp setuptooltip.cpp + LINK showfotosetup-static +) diff --git a/src/tdeioslave/CMakeLists.txt b/src/tdeioslave/CMakeLists.txt new file mode 100644 index 00000000..075a65e1 --- /dev/null +++ b/src/tdeioslave/CMakeLists.txt @@ -0,0 +1,56 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/jpegutils +) + +set( SQLITE3_LIBRARIES "" ) +if( WITH_SQLITE3 ) + include_directories( ${CMAKE_SOURCE_DIR}/src/libs/sqlite3 ) + list( APPEND SQLITE3_LIBRARIES "sqlite3-static" ) +endif( ) + + +##### tdeio modules (kparts) + +tde_add_kpart( tdeio_digikamthumbnail AUTOMOC + SOURCES digikamthumbnail.cpp + LINK dimg-static jpegutils-static tdecore-shared tdeio-shared ${SQLITE3_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + +tde_add_kpart( tdeio_digikamtags AUTOMOC + SOURCES digikamtags.cpp sqlitedb.cpp + LINK tdecore-shared tdeio-shared ${SQLITE3_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + +tde_add_kpart( tdeio_digikamalbums AUTOMOC + SOURCES digikamalbums.cpp sqlitedb.cpp + LINK + dmetadata-static tdecore-shared tdeio-shared + ${SQLITE3_LIBRARIES} ${KDCRAW_LIBRARIES} ${KEXIV2_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + +tde_add_kpart( tdeio_digikamdates AUTOMOC + SOURCES digikamdates.cpp sqlitedb.cpp + LINK tdecore-shared tdeio-shared ${SQLITE3_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + +tde_add_kpart( tdeio_digikamsearch AUTOMOC + SOURCES digikamsearch.cpp sqlitedb.cpp + LINK tdecore-shared tdeio-shared ${SQLITE3_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +tde_create_translated_desktop( + SOURCE + digikamthumbnail.protocol digikamtags.protocol digikamalbums.protocol + digikamdates.protocol digikamsearch.protocol + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/themedesigner/CMakeLists.txt b/src/themedesigner/CMakeLists.txt new file mode 100644 index 00000000..1cdd4a74 --- /dev/null +++ b/src/themedesigner/CMakeLists.txt @@ -0,0 +1,17 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/imageproperties + ${CMAKE_SOURCE_DIR}/src/libs/themeengine + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common +) + + +##### digikamthemedesigner (executable) + +tde_add_executable( digikamthemedesigner AUTOMOC + SOURCES + main.cpp mainwindow.cpp themedicongroupitem.cpp themediconitem.cpp themediconview.cpp + LINK + digikam-shared tdecore-shared tdeui-shared ${KDCRAW_LIBRARIES} ${KEXIV2_LIBRARIES} + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/src/utilities/CMakeLists.txt b/src/utilities/CMakeLists.txt new file mode 100644 index 00000000..65866a7a --- /dev/null +++ b/src/utilities/CMakeLists.txt @@ -0,0 +1,10 @@ +##### subfolders + +add_subdirectory( imageeditor ) +add_subdirectory( setup ) +add_subdirectory( cameragui ) +add_subdirectory( hotplug ) +add_subdirectory( scripts ) +add_subdirectory( batch ) +add_subdirectory( slideshow ) +add_subdirectory( lighttable ) diff --git a/src/utilities/batch/CMakeLists.txt b/src/utilities/batch/CMakeLists.txt new file mode 100644 index 00000000..82ed9611 --- /dev/null +++ b/src/utilities/batch/CMakeLists.txt @@ -0,0 +1,17 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/dialogs + ${CMAKE_SOURCE_DIR}/src/libs/thumbbar + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common +) + + +##### batch library (static) + +tde_add_library( batch STATIC_PIC AUTOMOC + SOURCES + batchthumbsgenerator.cpp batchalbumssyncmetadata.cpp + imageinfojob.cpp imageinfoalbumsjob.cpp batchsyncmetadata.cpp + LINK + tdecore-shared +) diff --git a/src/utilities/cameragui/CMakeLists.txt b/src/utilities/cameragui/CMakeLists.txt new file mode 100644 index 00000000..b6c9b533 --- /dev/null +++ b/src/utilities/cameragui/CMakeLists.txt @@ -0,0 +1,22 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/imageproperties + ${CMAKE_SOURCE_DIR}/src/libs/jpegutils + ${CMAKE_SOURCE_DIR}/src/libs/themeengine + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/editor + ${GPHOTO2_INCLUDE_DIRS} +) + + +##### cameragui library (static) + +tde_add_library( cameragui STATIC_PIC AUTOMOC + SOURCES + gpcamera.cpp cameraui.cpp cameraiconview.cpp cameraiconitem.cpp cameracontroller.cpp + camerafolderview.cpp camerafolderitem.cpp animwidget.cpp renamecustomizer.cpp dkcamera.cpp + umscamera.cpp gpiteminfo.cpp camerainfodialog.cpp albumselectdialog.cpp camerafolderdialog.cpp + freespacewidget.cpp + LINK + imagepropertiescamgui-static jpegutils-static ${GPHOTO2_LIBRARIES} ${JPEG_LIBRARIES} +) diff --git a/src/utilities/hotplug/CMakeLists.txt b/src/utilities/hotplug/CMakeLists.txt new file mode 100644 index 00000000..6a28c3a4 --- /dev/null +++ b/src/utilities/hotplug/CMakeLists.txt @@ -0,0 +1,19 @@ +configure_file( digikam-download.desktop.cmake digikam-download.desktop @ONLY ) +configure_file( digikam-gphoto2-camera.desktop.cmake digikam-gphoto2-camera.desktop @ONLY ) +configure_file( digikam-mount-and-download.desktop.cmake digikam-mount-and-download.desktop @ONLY ) + + +##### other files + +install( + FILES digikam-camera + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/utils +) + +tde_create_translated_desktop( + SOURCE + ${CMAKE_CURRENT_BINARY_DIR}/digikam-download.desktop + ${CMAKE_CURRENT_BINARY_DIR}/digikam-gphoto2-camera.desktop + ${CMAKE_CURRENT_BINARY_DIR}/digikam-mount-and-download.desktop + DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus +) diff --git a/src/utilities/hotplug/digikam-download.desktop.cmake b/src/utilities/hotplug/digikam-download.desktop.cmake new file mode 100644 index 00000000..6735667e --- /dev/null +++ b/src/utilities/hotplug/digikam-download.desktop.cmake @@ -0,0 +1,27 @@ +[Desktop Action digiKam Download] +Exec=@DATA_INSTALL_DIR@/digikam/utils/digikam-camera storage %u +Icon=digikam +Name=Download Photos with digiKam +Name[ca]=Descàrrega de fotos amb el digiKam +Name[de]=Fotos mit digiKam herunterladen +Name[es]=Descargar fotos con digiKam +Name[et]=Fotode allalaadimine digiKamiga +Name[fi]=Lataa valokuvat digiKamilla +Name[fr]=Télécharger les photos avec digiKam +Name[is]=Hala niður myndum með digiKam +Name[it]=Scarica foto con digiKam +Name[ja]=digiKam で写真をダウンロード +Name[nds]=Fotos mit digiKam daalladen +Name[nl]=Foto's downloaden met digiKam +Name[pl]=Pobierz zdjęcia programem digiKam +Name[pt]=Obter Fotografias com o digiKam +Name[pt_BR]=Obter Fotografias com o digiKam +Name[sk]=Stiahnuť fotky pomocou digiKam +Name[sr]=Преузми слике помоћу digiKam-а +Name[sr@Latn]=Преузми слике помоћу digiKam-а +Name[sv]=Ladda ner foton med Digikam +Name[xx]=xxDownload Photos with digiKamxx + +[Desktop Entry] +Actions=digiKam Download +X-TDE-ServiceTypes=media/removable_mounted,media/camera_mounted diff --git a/src/utilities/hotplug/digikam-gphoto2-camera.desktop.cmake b/src/utilities/hotplug/digikam-gphoto2-camera.desktop.cmake new file mode 100644 index 00000000..73fd98dc --- /dev/null +++ b/src/utilities/hotplug/digikam-gphoto2-camera.desktop.cmake @@ -0,0 +1,27 @@ +[Desktop Action digiKam Detect and Download] +Exec=@DATA_INSTALL_DIR@/digikam/utils/digikam-camera detect %u +Icon=digikam +Name=digiKam Detect and Download +Name[ca]=Detecta i descarrega amb el digiKam +Name[de]=Finden und Herunterladen mit digiKam +Name[es]=Detectar y descargar con digiKam +Name[et]=*Fotode tuvastamine ja allalaadimine digiKamiga +Name[fi]=Tunnista kamera ja lataa kuvat digiKamilla +Name[fr]=Détecter et télécharger avec digiKam +Name[is]=digiKam Finna og Niðurhala +Name[it]=Rileva e scarica con digiKam +Name[ja]=digiKam 検出とダウンロード +Name[nds]=digiKam - Opdecken un daalladen +Name[nl]=digiKam-detectie en download +Name[pl]=Wykrycie i pobieranie digiKamem +Name[pt]=Detectar e Transferir com o digiKam +Name[pt_BR]=Detectar e Transferir com o digiKam +Name[sk]=digiKam Nájsť a stiahnuť +Name[sr]=digiKam-ово Препознај и преузми +Name[sr@Latn]=digiKam-ово Препознај и преузми +Name[sv]=Digikam detektering och nerladdning +Name[xx]=xxdigiKam Detect and Downloadxx + +[Desktop Entry] +Actions=digiKam Detect and Download +X-TDE-ServiceTypes=media/gphoto2camera diff --git a/src/utilities/hotplug/digikam-mount-and-download.desktop.cmake b/src/utilities/hotplug/digikam-mount-and-download.desktop.cmake new file mode 100644 index 00000000..6081adbc --- /dev/null +++ b/src/utilities/hotplug/digikam-mount-and-download.desktop.cmake @@ -0,0 +1,27 @@ +[Desktop Action digiKam Mount and Download] +Exec=@DATA_INSTALL_DIR@/digikam/utils/digikam-camera storage %u +Icon=digikam +Name=Download Photos with digiKam +Name[ca]=Descàrrega de fotos amb el digiKam +Name[de]=Fotos mit digiKam herunterladen +Name[es]=Descargar fotos con digiKam +Name[et]=Fotode allalaadimine digiKamiga +Name[fi]=Lataa valokuvat digiKamilla +Name[fr]=Télécharger les photos avec digiKam +Name[is]=Hala niður myndum með digiKam +Name[it]=Scarica foto con digiKam +Name[ja]=digiKam で写真をダウンロード +Name[nds]=Fotos mit digiKam daalladen +Name[nl]=Foto's downloaden met digiKam +Name[pl]=Pobierz zdjęcia programem digiKam +Name[pt]=Obter Fotografias com o digiKam +Name[pt_BR]=Obter Fotografias com o digiKam +Name[sk]=Stiahnuť fotky pomocou digiKam +Name[sr]=Преузми слике помоћу digiKam-а +Name[sr@Latn]=Преузми слике помоћу digiKam-а +Name[sv]=Ladda ner foton med Digikam +Name[xx]=xxDownload Photos with digiKamxx + +[Desktop Entry] +Actions=digiKam Mount and Download +X-TDE-ServiceTypes=media/removable_unmounted,media/camera_unmounted diff --git a/src/utilities/imageeditor/CMakeLists.txt b/src/utilities/imageeditor/CMakeLists.txt new file mode 100644 index 00000000..4e9ce263 --- /dev/null +++ b/src/utilities/imageeditor/CMakeLists.txt @@ -0,0 +1,6 @@ +##### subfolders + +add_subdirectory( canvas ) +add_subdirectory( tools ) +add_subdirectory( rawimport ) +add_subdirectory( editor ) diff --git a/src/utilities/imageeditor/canvas/CMakeLists.txt b/src/utilities/imageeditor/canvas/CMakeLists.txt new file mode 100644 index 00000000..b5ab4cc3 --- /dev/null +++ b/src/utilities/imageeditor/canvas/CMakeLists.txt @@ -0,0 +1,28 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/dialogs + ${CMAKE_SOURCE_DIR}/src/libs/dimg/filters + ${CMAKE_SOURCE_DIR}/src/libs/threadimageio + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common + ${CMAKE_SOURCE_DIR}/src/libs/widgets/imageplugins + ${CMAKE_SOURCE_DIR}/src/utilities/splashscreen + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/editor + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/rawimport +) + + +##### dimgcanvas library (static) + +tde_add_library( dimgcanvas STATIC_PIC AUTOMOC + SOURCES + dimginterface.cpp colorcorrectiondlg.cpp canvas.cpp undocache.cpp undoaction.cpp + undomanager.cpp imagepluginloader.cpp imageplugin.cpp +) + + +##### other files + +install( + FILES imageplugin.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/utilities/imageeditor/editor/CMakeLists.txt b/src/utilities/imageeditor/editor/CMakeLists.txt new file mode 100644 index 00000000..e327bdd0 --- /dev/null +++ b/src/utilities/imageeditor/editor/CMakeLists.txt @@ -0,0 +1,57 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/dialogs + ${CMAKE_SOURCE_DIR}/src/libs/dimg/filters + ${CMAKE_SOURCE_DIR}/src/libs/imageproperties + ${CMAKE_SOURCE_DIR}/src/libs/themeengine + ${CMAKE_SOURCE_DIR}/src/libs/threadimageio + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common + ${CMAKE_SOURCE_DIR}/src/libs/widgets/imageplugins + ${CMAKE_SOURCE_DIR}/src/utilities/setup + ${CMAKE_SOURCE_DIR}/src/utilities/slideshow + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/canvas + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/tools + ${CMAKE_BINARY_DIR}/src/libs/dialogs +) + + +##### dimgeditor library (static) + +tde_add_library( dimgeditor STATIC_PIC AUTOMOC + SOURCES + editorwindow.cpp imageiface.cpp imagewindow.cpp editorstackview.cpp + editortooliface.cpp editortool.cpp editortoolsettings.cpp + LINK + dialog-static dimgcanvas-static dimgeditortools-static imagepluginswidgets-static rawimport-static +) + +##### showfoto library (static) + +tde_add_library( showfoto STATIC_PIC AUTOMOC + SOURCES + editorwindow.cpp imageiface.cpp editorstackview.cpp + editortooliface.cpp editortool.cpp editortoolsettings.cpp + LINK + dimg-static dialogshowfoto-static greycstoration-static dimgcanvas-static + dimgeditortools-static rawimport-static metadatawidgets-static + iccprofileswidgets-static imagepluginswidgets-static commonwidgets-static + tdeprint-shared +) + + +##### other files + +install( + FILES imageiface.h + DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} +) + +install( + FILES digikamimagewindowui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE digikamimageplugin.desktop + DESTINATION ${SERVICETYPES_INSTALL_DIR} +) diff --git a/src/utilities/imageeditor/rawimport/CMakeLists.txt b/src/utilities/imageeditor/rawimport/CMakeLists.txt new file mode 100644 index 00000000..c7335d88 --- /dev/null +++ b/src/utilities/imageeditor/rawimport/CMakeLists.txt @@ -0,0 +1,22 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/curves + ${CMAKE_SOURCE_DIR}/src/libs/dialogs + ${CMAKE_SOURCE_DIR}/src/libs/dimg/filters + ${CMAKE_SOURCE_DIR}/src/libs/levels + ${CMAKE_SOURCE_DIR}/src/libs/themeengine + ${CMAKE_SOURCE_DIR}/src/libs/threadimageio + ${CMAKE_SOURCE_DIR}/src/libs/whitebalance + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common + ${CMAKE_SOURCE_DIR}/src/libs/widgets/iccprofiles + ${CMAKE_SOURCE_DIR}/src/utilities/splashscreen + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/editor +) + + +##### rawimport library (static) + +tde_add_library( rawimport STATIC_PIC AUTOMOC + SOURCES rawpreview.cpp rawsettingsbox.cpp rawimport.cpp rawpostprocessing.cpp + LINK commonwidgets-static iccprofileswidgets-static +) diff --git a/src/utilities/imageeditor/tools/CMakeLists.txt b/src/utilities/imageeditor/tools/CMakeLists.txt new file mode 100644 index 00000000..45b8f6cb --- /dev/null +++ b/src/utilities/imageeditor/tools/CMakeLists.txt @@ -0,0 +1,16 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/dimg/filters + ${CMAKE_SOURCE_DIR}/src/libs/greycstoration + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/canvas + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/editor +) + + +##### dimgeditortools library (static) + +tde_add_library( dimgeditortools STATIC_PIC AUTOMOC + SOURCES imageresize.cpp imageprint.cpp + LINK greycstoration-static +) diff --git a/src/utilities/lighttable/CMakeLists.txt b/src/utilities/lighttable/CMakeLists.txt new file mode 100644 index 00000000..d6268bae --- /dev/null +++ b/src/utilities/lighttable/CMakeLists.txt @@ -0,0 +1,31 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/dialogs + ${CMAKE_SOURCE_DIR}/src/libs/dimg/filters + ${CMAKE_SOURCE_DIR}/src/libs/imageproperties + ${CMAKE_SOURCE_DIR}/src/libs/thumbbar + ${CMAKE_SOURCE_DIR}/src/libs/themeengine + ${CMAKE_SOURCE_DIR}/src/libs/threadimageio + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common + ${CMAKE_SOURCE_DIR}/src/utilities/setup + ${CMAKE_SOURCE_DIR}/src/utilities/slideshow + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/canvas + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/editor + ${CMAKE_BINARY_DIR}/src/libs/dialogs +) + + +##### lighttable library (static) + +tde_add_library( lighttable STATIC_PIC AUTOMOC + SOURCES lighttablebar.cpp lighttablewindow.cpp lighttablepreview.cpp lighttableview.cpp + LINK thumbbar-static tdecore-shared +) + + +##### other files + +install( + FILES lighttablewindowui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) diff --git a/src/utilities/scripts/CMakeLists.txt b/src/utilities/scripts/CMakeLists.txt new file mode 100644 index 00000000..6d82b8e0 --- /dev/null +++ b/src/utilities/scripts/CMakeLists.txt @@ -0,0 +1,6 @@ +##### other files + +install( + PROGRAMS digitaglinktree + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/src/utilities/setup/CMakeLists.txt b/src/utilities/setup/CMakeLists.txt new file mode 100644 index 00000000..ff939534 --- /dev/null +++ b/src/utilities/setup/CMakeLists.txt @@ -0,0 +1,31 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/dialogs + ${CMAKE_SOURCE_DIR}/src/libs/dimg/loaders + ${CMAKE_SOURCE_DIR}/src/libs/widgets/common + ${CMAKE_SOURCE_DIR}/src/utilities/batch + ${CMAKE_SOURCE_DIR}/src/utilities/cameragui + ${CMAKE_SOURCE_DIR}/src/utilities/imageeditor/canvas + ${KIPI_INCLUDE_DIRS} +) + + +##### setup library (static) + +tde_add_library( setup STATIC_PIC AUTOMOC + SOURCES + cameraselection.cpp setupcamera.cpp setupmime.cpp setupplugins.cpp setupidentity.cpp + setupgeneral.cpp setup.cpp setupcollections.cpp setupmetadata.cpp setupeditor.cpp + setupmisc.cpp setupicc.cpp setupiofiles.cpp setupdcraw.cpp setupslideshow.cpp setuptooltip.cpp + setuplighttable.cpp + LINK + dialog-static +) + +##### showfotosetup library (static) + +tde_add_library( showfotosetup STATIC_PIC AUTOMOC + SOURCES setupiofiles.cpp setupdcraw.cpp setupicc.cpp setupslideshow.cpp + LINK + dialog-static dimgloaders-static dimgeditortools-static rawimport-static +) diff --git a/src/utilities/slideshow/CMakeLists.txt b/src/utilities/slideshow/CMakeLists.txt new file mode 100644 index 00000000..cc7e1fb6 --- /dev/null +++ b/src/utilities/slideshow/CMakeLists.txt @@ -0,0 +1,13 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libs/themeengine + ${CMAKE_SOURCE_DIR}/src/libs/threadimageio +) + + +##### slideshow library (static) + +tde_add_library( slideshow STATIC_PIC AUTOMOC + SOURCES toolbar.cpp slideshow.cpp + LINK tdecore-shared +) |