d8439e8543
r564549 | mlaurent | 2006-07-20 15:08:26 +0200 (Thu, 20 Jul 2006) | 2 lines Replace all bin by ${BIN_INSTALL_DIR} svn path=/trunk/KDE/kdebase/workspace/; revision=659256
47 lines
1.5 KiB
CMake
47 lines
1.5 KiB
CMake
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../lib # KWin library dir
|
|
${CMAKE_CURRENT_BINARY_DIR}/../../ # main KWin dir
|
|
)
|
|
|
|
ADD_DEFINITIONS(-DKCMRULES)
|
|
########### next target ###############
|
|
|
|
set(kwinrules_SRCS ruleswidget.cpp ruleslist.cpp kwinsrc.cpp detectwidget.cpp)
|
|
kde4_add_ui3_files(kwinrules_SRCS ruleswidgetbase.ui ruleslistbase.ui detectwidgetbase.ui editshortcutbase.ui )
|
|
|
|
set(kwin_rules_dialog_KDEINIT_SRCS main.cpp ${kwinrules_SRCS})
|
|
|
|
kde4_automoc(kwin_rules_dialog ${kwin_rules_dialog_KDEINIT_SRCS})
|
|
|
|
kde4_add_kdeinit_executable( kwin_rules_dialog ${kwin_rules_dialog_KDEINIT_SRCS})
|
|
|
|
target_link_libraries(kdeinit_kwin_rules_dialog ${KDE4_KDEUI_LIBS} ${KDE4_KDE3SUPPORT_LIBS} )
|
|
|
|
install(TARGETS kdeinit_kwin_rules_dialog DESTINATION ${LIB_INSTALL_DIR} )
|
|
|
|
target_link_libraries( kwin_rules_dialog kdeinit_kwin_rules_dialog )
|
|
install(TARGETS kwin_rules_dialog DESTINATION ${BIN_INSTALL_DIR})
|
|
|
|
########### next target ###############
|
|
|
|
set(kcm_kwinrules_PART_SRCS kcm.cpp ${kwinrules_SRCS})
|
|
|
|
kde4_automoc(kcm_kwinrules ${kcm_kwinrules_PART_SRCS})
|
|
|
|
kde4_add_plugin(kcm_kwinrules ${kcm_kwinrules_PART_SRCS})
|
|
|
|
kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kcm_kwinrules )
|
|
|
|
target_link_libraries(kcm_kwinrules ${KDE4_KDEUI_LIBS} ${KDE4_KDE3SUPPORT_LIBS} )
|
|
|
|
install(TARGETS kcm_kwinrules DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
########### install files ###############
|
|
|
|
install( FILES kwinrules.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
|
|
|