diff options
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 72 |
1 files changed, 72 insertions, 0 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} +) |