diff options
| author | gregory guy <g-gregory@gmx.fr> | 2019-02-07 15:18:06 +0100 |
|---|---|---|
| committer | gregory guy <g-gregory@gmx.fr> | 2019-02-08 13:56:17 +0100 |
| commit | b39e276958b010825d8d030add4945b6ecd2ba3b (patch) | |
| tree | 356cee814a0357458a3e7559998d87257e045814 /src | |
| parent | 56db0ac263e2c908dbdc43c2b7a5c9c642bbe586 (diff) | |
| download | tastymenu-b39e276958b010825d8d030add4945b6ecd2ba3b.tar.gz tastymenu-b39e276958b010825d8d030add4945b6ecd2ba3b.zip | |
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr>
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 72 | ||||
| -rw-r--r-- | src/menuhandler.cpp | 2 | ||||
| -rw-r--r-- | src/tastylistview.cpp | 2 | ||||
| -rw-r--r-- | src/tastymenu.cpp | 1 |
4 files changed, 75 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..1b8feb0 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,72 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${X11_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### buttons.h (header) + +file( GLOB _pics ${CMAKE_CURRENT_SOURCE_DIR}/pics/*.png ) + +set( _header buttons.h ) + +add_custom_command( + OUTPUT ${_header} + COMMAND ${UIC_EXECUTABLE} + ARGS -o ${_header} -embed buttons ${_pics} + DEPENDS ${_pics} +) + + +##### tastymenu_panelapplet (kpart) + +set_source_files_properties( + menuhandler.cpp + PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_header} +) + +tde_add_kpart( tastymenu_panelapplet AUTOMOC + + SOURCES + appearance.ui + behaviour.ui + menu.ui + tastytooltipwidget.ui + tastymenu.cpp + menuhandler.cpp + dmctl.cpp + tastylistview.cpp + misc.cpp + tastytooltip.cpp + tastybutton.cpp + prefs.kcfgc + LINK + tdecore-shared + tdeui-shared + tdeio-shared + ${LIBXAU_LIBRARIES} + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data + +install( + FILES tastymenu.desktop + DESTINATION ${DATA_INSTALL_DIR}/kicker/applets +) + +install( + FILES tastymenu.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) diff --git a/src/menuhandler.cpp b/src/menuhandler.cpp index 8ee4508..d3a4a79 100644 --- a/src/menuhandler.cpp +++ b/src/menuhandler.cpp @@ -1708,5 +1708,5 @@ void MenuHandler::switchWindowMode() prefSkel->writeConfig(); } - +#include "menuhandler.moc" //EOF diff --git a/src/tastylistview.cpp b/src/tastylistview.cpp index cb6d629..f958bfc 100644 --- a/src/tastylistview.cpp +++ b/src/tastylistview.cpp @@ -594,7 +594,7 @@ void TastyListViewItem::paintCell ( TQPainter * p, const TQColorGroup & cg, int pBuf.end(); p->drawPixmap( 0, 0, buffer ); } - +#include "tastylistview.moc" //EOF diff --git a/src/tastymenu.cpp b/src/tastymenu.cpp index a581123..263398c 100644 --- a/src/tastymenu.cpp +++ b/src/tastymenu.cpp @@ -490,3 +490,4 @@ extern "C" parent, "tastymenu"); } } +#include "tastymenu.moc" |
