diff options
author | gregory guy <gregory-tde@laposte.net> | 2020-03-29 19:41:28 +0200 |
---|---|---|
committer | gregory guy <gregory-tde@laposte.net> | 2020-05-07 15:56:19 +0200 |
commit | e7d7fa7069e90f13ee9ce83cde1ea508a9c0b57d (patch) | |
tree | b9869072d9a5efccec8c6738193d2325cc59427b /kmousetool/kmousetool | |
parent | c4c87025a0d51bc969b5065c0a1d6ae4244796e1 (diff) | |
download | tdeaccessibility-e7d7fa7069e90f13ee9ce83cde1ea508a9c0b57d.tar.gz tdeaccessibility-e7d7fa7069e90f13ee9ce83cde1ea508a9c0b57d.zip |
Conversion to the cmake building system.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
Diffstat (limited to 'kmousetool/kmousetool')
-rw-r--r-- | kmousetool/kmousetool/CMakeLists.txt | 49 | ||||
-rw-r--r-- | kmousetool/kmousetool/kmousetoolui.ui | 12 | ||||
-rw-r--r-- | kmousetool/kmousetool/pics/CMakeLists.txt | 3 |
3 files changed, 54 insertions, 10 deletions
diff --git a/kmousetool/kmousetool/CMakeLists.txt b/kmousetool/kmousetool/CMakeLists.txt new file mode 100644 index 0000000..9f70cc7 --- /dev/null +++ b/kmousetool/kmousetool/CMakeLists.txt @@ -0,0 +1,49 @@ +add_subdirectory( pics ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${X11_INCLUDE_DIR} + ${X11_XTest_INCLUDE_PATH} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kmousetool (executable) + +tde_add_executable( kmousetool AUTOMOC + + SOURCES + kmousetoolui.ui + mtstroke.cpp + kmousetool.cpp + main.cpp + LINK + tdecore-shared + tdeui-shared + tdeio-shared + ${X11_LIBRARIES} + ${X11_XTest_LIB} + ${X11_Xext_LIB} + + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### other data + +install( + FILES kmousetool.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + +install( + FILES mousetool_tap.wav + DESTINATION ${DATA_INSTALL_DIR}/kmousetool/sounds +) diff --git a/kmousetool/kmousetool/kmousetoolui.ui b/kmousetool/kmousetool/kmousetoolui.ui index 906160a..a5f388a 100644 --- a/kmousetool/kmousetool/kmousetoolui.ui +++ b/kmousetool/kmousetool/kmousetoolui.ui @@ -408,15 +408,7 @@ </connections> <layoutdefaults spacing="6" margin="11"/> <includehints> - <includehint>knuminput.h</includehint> - <includehint>knuminput.h</includehint> - <includehint>knuminput.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kpushbutton.h</includehint> + <include location="global" impldecl="in implementation">knuminput.h</include> + <include location="global" impldecl="in implementation">kpushbutton.h</include> </includehints> </UI> diff --git a/kmousetool/kmousetool/pics/CMakeLists.txt b/kmousetool/kmousetool/pics/CMakeLists.txt new file mode 100644 index 0000000..160a56b --- /dev/null +++ b/kmousetool/kmousetool/pics/CMakeLists.txt @@ -0,0 +1,3 @@ +tde_install_icons( + DESTINATION ${DATA_INSTALL_DIR}/kmousetool/icons +) |