1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
# Project Needs a name ofcourse
project(plasmaboard)
# Find the required Libaries
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${KDE4_INCLUDES}
)
# We add our source code here
set(plasmaboard_SRCS widget.cpp BoardKey.cpp PanelIcon.cpp AlphaNumKey.cpp FuncKey.cpp EnterKey.cpp BackspaceKey.cpp TabKey.cpp ShiftKey.cpp CapsKey.cpp ArrowTopKey.cpp ArrowBottomKey.cpp ArrowLeftKey.cpp ArrowRightKey.cpp tooltip.cpp)
# Now make sure all files get to the right place
kde4_add_plugin(plasma_applet_plasmaboard ${plasmaboard_SRCS})
target_link_libraries(plasma_applet_plasmaboard
${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} kephal plasmaclock ${X11_XTest_LIB} ${X11_X11_LIB} ${X11_LIBS})
install(TARGETS plasma_applet_plasmaboard DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma_applet_plasmaboard.desktop
DESTINATION ${SERVICES_INSTALL_DIR})
#install(FILES plasmaboard_key.svg
# DESTINATION ${DATA_INSTALL_DIR}/desktoptheme/default/widgets/)
|