summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2018-09-28 13:21:36 +0200
committergregory guy <[email protected]>2018-09-28 13:21:36 +0200
commitb7ae75d53ab260a281d6424d566738fc8a3715c5 (patch)
treecedb328cacb46031f84664993d8e60d732f9b1bc /src
parent3818195f21eb5b4882460d52501aff34dddabe93 (diff)
downloadkvkbd-b7ae75d53ab260a281d6424d566738fc8a3715c5.tar.gz
kvkbd-b7ae75d53ab260a281d6424d566738fc8a3715c5.zip
convert to the cmake building system
Signed-off-by: gregory guy <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt52
-rw-r--r--src/DragWidget.cpp1
-rw-r--r--src/MainWidget.cpp2
-rw-r--r--src/VButton.cpp2
-rw-r--r--src/numpadvbutton.cpp2
-rw-r--r--src/resizabledragwidget.cpp2
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"