summaryrefslogtreecommitdiffstats
path: root/kdpkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'kdpkg-install')
-rw-r--r--kdpkg-install/CMakeLists.txt47
-rw-r--r--kdpkg-install/icons/CMakeLists.txt6
-rw-r--r--kdpkg-install/process.cpp2
3 files changed, 54 insertions, 1 deletions
diff --git a/kdpkg-install/CMakeLists.txt b/kdpkg-install/CMakeLists.txt
new file mode 100644
index 0000000..0dc2bf9
--- /dev/null
+++ b/kdpkg-install/CMakeLists.txt
@@ -0,0 +1,47 @@
+add_subdirectory( icons )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### kdpkg-install (executable)
+
+tde_add_executable( ${PROJECT_NAME}-install AUTOMOC
+
+ SOURCES
+ installdialog.ui
+ consoledialog.ui
+ main.cpp
+ install.cpp
+ process.cpp
+ console.cpp
+ LINK
+ tdecore-shared
+ tdeui-shared
+ tdeio-shared
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data
+
+install(
+ FILES ${PROJECT_NAME}-install.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install(
+ PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/sh/${PROJECT_NAME}-sh
+ DESTINATION ${SHARE_INSTALL_PREFIX}/${PROJECT_NAME}/sh
+)
diff --git a/kdpkg-install/icons/CMakeLists.txt b/kdpkg-install/icons/CMakeLists.txt
new file mode 100644
index 0000000..904fe23
--- /dev/null
+++ b/kdpkg-install/icons/CMakeLists.txt
@@ -0,0 +1,6 @@
+file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png )
+
+install(
+ FILES ${_pics}
+ DESTINATION ${SHARE_INSTALL_PREFIX}/${PROJECT_NAME}/icons
+)
diff --git a/kdpkg-install/process.cpp b/kdpkg-install/process.cpp
index 97c2f6b..569b2ac 100644
--- a/kdpkg-install/process.cpp
+++ b/kdpkg-install/process.cpp
@@ -59,5 +59,5 @@
_buffer.append(TQString::fromLocal8Bit(buffer, len));
}
-
+#include "process.moc"