summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
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/CMakeLists.txt
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/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt43
1 files changed, 43 insertions, 0 deletions
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}
+)