summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-03-30 17:34:00 +0300
committerMavridis Philippe <mavridisf@gmail.com>2021-03-30 18:57:45 +0300
commit079304a40aa3160172ccf5285bd0a2cede403513 (patch)
tree2645c519f75e9c2a4aae3aa4846034982a6eed38 /src
parent2236746366ccdda326a30bce1deef1d4c5bddc73 (diff)
downloadkompose-079304a40aa3160172ccf5285bd0a2cede403513.tar.gz
kompose-079304a40aa3160172ccf5285bd0a2cede403513.zip
CMake build system support.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt3
-rw-r--r--src/CMakeLists.txt43
-rw-r--r--src/icons/CMakeLists.txt2
-rw-r--r--src/icons/hi16-action-kompose_current_virtual_desktop.png (renamed from src/hi16-action-kompose_current_virtual_desktop.png)bin886 -> 886 bytes
-rw-r--r--src/icons/hi16-action-kompose_grouped_by_virtual_desktop.png (renamed from src/hi16-action-kompose_grouped_by_virtual_desktop.png)bin809 -> 809 bytes
-rw-r--r--src/icons/hi16-action-kompose_ungrouped.png (renamed from src/hi16-action-kompose_ungrouped.png)bin681 -> 681 bytes
-rw-r--r--src/icons/hi16-app-kompose.png (renamed from src/hi16-app-kompose.png)bin684 -> 684 bytes
-rw-r--r--src/icons/hi32-action-kompose_current_virtual_desktop.png (renamed from src/hi32-action-kompose_current_virtual_desktop.png)bin1941 -> 1941 bytes
-rw-r--r--src/icons/hi32-action-kompose_grouped_by_virtual_desktop.png (renamed from src/hi32-action-kompose_grouped_by_virtual_desktop.png)bin1490 -> 1490 bytes
-rw-r--r--src/icons/hi32-action-kompose_ungrouped.png (renamed from src/hi32-action-kompose_ungrouped.png)bin1352 -> 1352 bytes
-rw-r--r--src/icons/hi32-app-kompose.png (renamed from src/hi32-app-kompose.png)bin1646 -> 1646 bytes
11 files changed, 48 insertions, 0 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
new file mode 100644
index 0000000..7d91398
--- /dev/null
+++ b/src/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "messages/kompose" )
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..6bb3f3e
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,43 @@
+add_subdirectory( icons )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${IMLIB2_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+##### kompose (executable)
+tde_add_executable( ${PROJECT_NAME} AUTOMOC
+
+ SOURCES
+ main.cpp kompose.cpp komposetaskmanager.cpp komposetask.cpp
+ komposewidget.cpp komposetaskwidget.cpp komposedesktopwidget.cpp komposelayout.cpp
+ komposesystray.cpp komposefullscreenwidget.cpp komposesettings.cpp komposepreferences.cpp
+ komposetaskprefswidget.cpp komposeglobal.cpp komposetaskcontainerwidget.cpp
+ komposetaskvisualizer.cpp komposeviewmanager.cpp komposedcopiface.skel
+
+ LINK
+ tdecore-shared
+ tdeui-shared
+ ${IMLIB2_LIBRARIES}
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+##### create translated desktop files
+
+tde_create_translated_desktop( kompose.desktop )
+
+##### install XML-GUI resource file
+install(
+ FILES komposeui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
+)
diff --git a/src/icons/CMakeLists.txt b/src/icons/CMakeLists.txt
new file mode 100644
index 0000000..fd330f5
--- /dev/null
+++ b/src/icons/CMakeLists.txt
@@ -0,0 +1,2 @@
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/icons )
+tde_install_icons( app-kompose )
diff --git a/src/hi16-action-kompose_current_virtual_desktop.png b/src/icons/hi16-action-kompose_current_virtual_desktop.png
index de19389..de19389 100644
--- a/src/hi16-action-kompose_current_virtual_desktop.png
+++ b/src/icons/hi16-action-kompose_current_virtual_desktop.png
Binary files differ
diff --git a/src/hi16-action-kompose_grouped_by_virtual_desktop.png b/src/icons/hi16-action-kompose_grouped_by_virtual_desktop.png
index 26dc380..26dc380 100644
--- a/src/hi16-action-kompose_grouped_by_virtual_desktop.png
+++ b/src/icons/hi16-action-kompose_grouped_by_virtual_desktop.png
Binary files differ
diff --git a/src/hi16-action-kompose_ungrouped.png b/src/icons/hi16-action-kompose_ungrouped.png
index 7bd14a3..7bd14a3 100644
--- a/src/hi16-action-kompose_ungrouped.png
+++ b/src/icons/hi16-action-kompose_ungrouped.png
Binary files differ
diff --git a/src/hi16-app-kompose.png b/src/icons/hi16-app-kompose.png
index 691be39..691be39 100644
--- a/src/hi16-app-kompose.png
+++ b/src/icons/hi16-app-kompose.png
Binary files differ
diff --git a/src/hi32-action-kompose_current_virtual_desktop.png b/src/icons/hi32-action-kompose_current_virtual_desktop.png
index 0854ab6..0854ab6 100644
--- a/src/hi32-action-kompose_current_virtual_desktop.png
+++ b/src/icons/hi32-action-kompose_current_virtual_desktop.png
Binary files differ
diff --git a/src/hi32-action-kompose_grouped_by_virtual_desktop.png b/src/icons/hi32-action-kompose_grouped_by_virtual_desktop.png
index c3d92a0..c3d92a0 100644
--- a/src/hi32-action-kompose_grouped_by_virtual_desktop.png
+++ b/src/icons/hi32-action-kompose_grouped_by_virtual_desktop.png
Binary files differ
diff --git a/src/hi32-action-kompose_ungrouped.png b/src/icons/hi32-action-kompose_ungrouped.png
index 5497100..5497100 100644
--- a/src/hi32-action-kompose_ungrouped.png
+++ b/src/icons/hi32-action-kompose_ungrouped.png
Binary files differ
diff --git a/src/hi32-app-kompose.png b/src/icons/hi32-app-kompose.png
index 45ec52a..45ec52a 100644
--- a/src/hi32-app-kompose.png
+++ b/src/icons/hi32-app-kompose.png
Binary files differ