2011-12-21 06:28:51 +00:00
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/version.h)
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
|
|
set(kcm_SRCS
|
|
|
|
main.cpp
|
|
|
|
module.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
kde4_add_ui_files(kcm_SRCS module.ui)
|
|
|
|
|
|
|
|
kde4_add_plugin(kcm_kwin_scripts ${kcm_SRCS})
|
|
|
|
|
|
|
|
target_link_libraries(kcm_kwin_scripts
|
|
|
|
${KDE4_KDEUI_LIBRARY}
|
2012-05-06 14:54:12 +00:00
|
|
|
${KDE4_KNEWSTUFF3_LIBS}
|
2011-12-21 06:28:51 +00:00
|
|
|
${KDE4_KIO_LIBS}
|
2012-02-18 09:38:23 +00:00
|
|
|
${KDE4_KCMUTILS_LIBS}
|
|
|
|
${KDE4_PLASMA_LIBS}
|
2011-12-21 06:28:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS kcm_kwin_scripts DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
|
|
install(FILES kwinscripts.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|
2012-05-06 14:54:12 +00:00
|
|
|
install(FILES kwinscripts.knsrc DESTINATION ${CONFIG_INSTALL_DIR})
|