diff options
author | gregory guy <[email protected]> | 2018-09-28 13:21:36 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-09-28 15:04:32 +0200 |
commit | 62a9253d76bf85295582b0c5dad6c0952f749fed (patch) | |
tree | 06e07df838c478eb86feb0bb6d4a530d21ab9930 /src | |
parent | 2e83bc7c6bcfb092e4b4c53318fd726d82725c02 (diff) | |
download | kvkbd-62a9253d76bf85295582b0c5dad6c0952f749fed.tar.gz kvkbd-62a9253d76bf85295582b0c5dad6c0952f749fed.zip |
convert to the cmake building system
Signed-off-by: gregory guy <[email protected]>
(cherry picked from commit b7ae75d53ab260a281d6424d566738fc8a3715c5)
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 52 | ||||
-rw-r--r-- | src/DragWidget.cpp | 1 | ||||
-rw-r--r-- | src/MainWidget.cpp | 2 | ||||
-rw-r--r-- | src/VButton.cpp | 2 | ||||
-rw-r--r-- | src/numpadvbutton.cpp | 2 | ||||
-rw-r--r-- | src/resizabledragwidget.cpp | 2 |
6 files changed, 59 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..ca7a8df --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,52 @@ +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} +) + + +##### kvkbd (executable) + +tde_add_executable( ${PROJECT_NAME} AUTOMOC + + SOURCES + DragWidget.cpp + MainWidget.cpp + VButton.cpp + main.cpp + numpadvbutton.cpp + resizabledragwidget.cpp + resizabledragwidget.h + LINK + tdecore-shared + tdeui-shared + tdeio-shared + Xtst + + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### icons + +tde_install_icons( ${PROJECT_NAME} ) + + +##### other data + +install( + FILES dock.png tray.png + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/pics +) + +install( + FILES ${PROJECT_NAME}.desktop + DESTINATION ${APPS_INSTALL_DIR}/Utilities +) diff --git a/src/DragWidget.cpp b/src/DragWidget.cpp index 769c1a8..8517b99 100644 --- a/src/DragWidget.cpp +++ b/src/DragWidget.cpp @@ -33,3 +33,4 @@ void DragWidget::mouseMoveEvent(TQMouseEvent *e) } +#include "DragWidget.moc" diff --git a/src/MainWidget.cpp b/src/MainWidget.cpp index cb4f80f..75afa2d 100644 --- a/src/MainWidget.cpp +++ b/src/MainWidget.cpp @@ -1826,7 +1826,7 @@ void KbdTray::mousePressEvent(TQMouseEvent *e) } } - +#include "MainWidget.moc" diff --git a/src/VButton.cpp b/src/VButton.cpp index 92a54f0..48c7cf7 100644 --- a/src/VButton.cpp +++ b/src/VButton.cpp @@ -119,3 +119,5 @@ void VButton::timerEvent(TQTimerEvent *) } sendKey(); } + +#include "VButton.moc" diff --git a/src/numpadvbutton.cpp b/src/numpadvbutton.cpp index 772efcb..3e64fb0 100644 --- a/src/numpadvbutton.cpp +++ b/src/numpadvbutton.cpp @@ -48,3 +48,5 @@ void NumpadVButton::setKeyCode(unsigned int numpad_keycode, unsigned int cursor_ numlock_code = numpad_keycode; VButton::setKeyCode(cursor_code); } + +#include "numpadvbutton.moc" diff --git a/src/resizabledragwidget.cpp b/src/resizabledragwidget.cpp index 609289a..ec48d6e 100644 --- a/src/resizabledragwidget.cpp +++ b/src/resizabledragwidget.cpp @@ -89,4 +89,4 @@ void ResizableDragWidget::paintEvent(TQPaintEvent *) } - +#include "resizabledragwidget.moc" |