diff options
author | gregory guy <g-gregory@gmx.fr> | 2019-05-09 16:11:56 +0200 |
---|---|---|
committer | gregory guy <g-gregory@gmx.fr> | 2019-05-09 16:11:56 +0200 |
commit | 26f73f5100c4917f50f593f55fc96776055d2b39 (patch) | |
tree | 80ae7da51c84cd02a929115370d82f15f8f5252b /kdpkg-install | |
parent | 08ba9b9adabc4a6581c58d7db8c9f4941ebe8a86 (diff) | |
download | kdpkg-26f73f5100c4917f50f593f55fc96776055d2b39.tar.gz kdpkg-26f73f5100c4917f50f593f55fc96776055d2b39.zip |
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr>
Diffstat (limited to 'kdpkg-install')
-rw-r--r-- | kdpkg-install/CMakeLists.txt | 47 | ||||
-rw-r--r-- | kdpkg-install/icons/CMakeLists.txt | 6 | ||||
-rw-r--r-- | kdpkg-install/process.cpp | 2 |
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" |