summaryrefslogtreecommitdiffstats
path: root/src/libs/widgets
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-12-01 10:36:36 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-12-16 20:53:31 +0900
commit394069e6de4326fd15a603fd0598d2de0c3342cd (patch)
tree4d4ab27dd03e368ac479271e707550457d7205e4 /src/libs/widgets
parent67fd8bef19878c6940d48fbdafe07a8842c99fd1 (diff)
downloaddigikam-feat/cmake-conversion.tar.gz
digikam-feat/cmake-conversion.zip
Conversion to cmake building systemfeat/cmake-conversion
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/libs/widgets')
-rw-r--r--src/libs/widgets/CMakeLists.txt6
-rw-r--r--src/libs/widgets/common/CMakeLists.txt29
-rw-r--r--src/libs/widgets/common/dlogoaction.cpp1
-rw-r--r--src/libs/widgets/iccprofiles/CMakeLists.txt22
-rw-r--r--src/libs/widgets/imageplugins/CMakeLists.txt26
-rw-r--r--src/libs/widgets/metadata/CMakeLists.txt16
6 files changed, 100 insertions, 0 deletions
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
+)