diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-23 23:42:11 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-23 23:42:11 +0000 |
commit | b6fc43ccd522dfbc1e215b12adb8208c156bbd31 (patch) | |
tree | b6d14378dd6c3d2f74ea8acf515cef7f4a024cb2 /khotkeys | |
parent | d53bf360906757a36588588fb0286d3b4784ffcb (diff) | |
download | tdebase-b6fc43ccd522dfbc1e215b12adb8208c156bbd31.tar.gz tdebase-b6fc43ccd522dfbc1e215b12adb8208c156bbd31.zip |
[kdebase] initial cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1216551 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khotkeys')
-rw-r--r-- | khotkeys/CMakeLists.txt | 41 | ||||
-rw-r--r-- | khotkeys/app/CMakeLists.txt | 44 | ||||
-rw-r--r-- | khotkeys/arts/CMakeLists.txt | 42 | ||||
-rw-r--r-- | khotkeys/data/CMakeLists.txt | 20 | ||||
-rw-r--r-- | khotkeys/kcontrol/CMakeLists.txt | 58 | ||||
-rw-r--r-- | khotkeys/kcontrol/ui/CMakeLists.txt | 40 | ||||
-rw-r--r-- | khotkeys/shared/CMakeLists.txt | 41 | ||||
-rw-r--r-- | khotkeys/update/CMakeLists.txt | 31 |
8 files changed, 317 insertions, 0 deletions
diff --git a/khotkeys/CMakeLists.txt b/khotkeys/CMakeLists.txt new file mode 100644 index 000000000..b2529ae04 --- /dev/null +++ b/khotkeys/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +check_c_source_runs( " + class A { public: virtual A* me(); }; + class X { public: int x; virtual void ff() {}; }; + class B : public X, public A { public: virtual B* me(); }; + int foo( A* a ) + { + A* aa = a->me(); + return a == aa; + } + int main() + { + B* b = new B; + return foo( b ) == 0; + } + A* A::me() { return this; } + B* B::me() { return this; } +" COVARIANT_RETURN ) + +if( NOT COVARIANT_RETURN ) + set( COVARIANT_RETURN_BROKEN 1 CACHE INTERNAL "" FORCE ) +endif( ) + +add_subdirectory( shared ) +add_subdirectory( kcontrol ) +add_subdirectory( app ) +add_subdirectory( data ) +add_subdirectory( update ) +tde_conditional_add_subdirectory( WITH_ARTS arts ) + +install( FILES khotkeys.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} ) diff --git a/khotkeys/app/CMakeLists.txt b/khotkeys/app/CMakeLists.txt new file mode 100644 index 000000000..8d5cc8fef --- /dev/null +++ b/khotkeys/app/CMakeLists.txt @@ -0,0 +1,44 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/khotkeys/shared + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES khotkeys.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded ) + + +##### kded_khotkeys (module) #################### + +tde_add_kpart( kded_khotkeys AUTOMOC + SOURCES kded.cpp kded.skel + LINK khotkeys_shared-shared kdeinit_kded-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### khotkeys (kdeinit) ######################## + +tde_add_kdeinit_executable( khotkeys AUTOMOC + SOURCES app.cpp app.skel + LINK khotkeys_shared-shared +) diff --git a/khotkeys/arts/CMakeLists.txt b/khotkeys/arts/CMakeLists.txt new file mode 100644 index 000000000..7cbf4eac3 --- /dev/null +++ b/khotkeys/arts/CMakeLists.txt @@ -0,0 +1,42 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +if( WITH_ARTS ) + pkg_search_module( ARTS arts ) + if( NOT ARTS_FOUND ) + tde_message_fatal( "aRts are requested, but not found on your system" ) + endif( ) + set( HAVE_ARTS 1 CACHE INTERNAL "" FORCE ) +endif( ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/khotkeys/kcontrol + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/khotkeys/shared + ${CMAKE_SOURCE_DIR}/khotkeys/kcontrol + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### khotkeys_arts (module) ####################### + +tde_add_kpart( khotkeys_arts AUTOMOC + SOURCES soundrecorder_arts.cpp voicerecorder_arts.cpp + LINK khotkeys_shared-shared artskde-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/khotkeys/data/CMakeLists.txt b/khotkeys/data/CMakeLists.txt new file mode 100644 index 000000000..06228c804 --- /dev/null +++ b/khotkeys/data/CMakeLists.txt @@ -0,0 +1,20 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES + kde32b1.khotkeys konqueror_gestures_kde321.khotkeys + printscreen.khotkeys + DESTINATION ${DATA_INSTALL_DIR}/khotkeys ) + +install( FILES + khotkeys_32b1_update.upd khotkeys_printscreen.upd + konqueror_gestures_kde321_update.upd + DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) diff --git a/khotkeys/kcontrol/CMakeLists.txt b/khotkeys/kcontrol/CMakeLists.txt new file mode 100644 index 000000000..e8c08a0ec --- /dev/null +++ b/khotkeys/kcontrol/CMakeLists.txt @@ -0,0 +1,58 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( ui ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR}/ui + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/khotkeys/shared + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +tde_install_icons( khotkeys ) +install( FILES khotkeys.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) + + +##### kcm_khotkeys (module) ##################### + +tde_add_kpart( kcm_khotkeys AUTOMOC + SOURCES + menuedit.cpp window_trigger_widget.cpp tab_widget.cpp main_buttons_widget.cpp + actions_listview_widget.cpp menuentry_widget.cpp general_tab.cpp + action_group_tab.cpp kcmkhotkeys.cpp command_url_widget.cpp windowdef_list_widget.cpp + windowdef_simple_widget.cpp triggers_tab.cpp dcop_widget.cpp info_tab.cpp + action_list_widget.cpp keyboard_input_widget.cpp condition_list_widget.cpp + gesturedrawer.cpp gesturerecorder.cpp gesturerecordpage.cpp gesture_triggers_tab.cpp + windowselector.cpp gestures_settings_tab.cpp general_settings_tab.cpp + voicerecorder.cpp voicerecordpage.cpp voice_settings_tab.cpp + LINK ui-static + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kcm_khotkeys_init (module) ################ + +tde_add_kpart( kcm_khotkeys_init AUTOMOC + SOURCES init.cpp + LINK kdecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/khotkeys/kcontrol/ui/CMakeLists.txt b/khotkeys/kcontrol/ui/CMakeLists.txt new file mode 100644 index 000000000..85212affb --- /dev/null +++ b/khotkeys/kcontrol/ui/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/khotkeys/shared + ${CMAKE_SOURCE_DIR}/khotkeys/kcontrol + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### ui (static) ############################### + +tde_add_library( ui STATIC_PIC AUTOMOC + SOURCES + windowdef_simple_widget_ui.ui windowdef_list_widget_ui.ui + command_url_widget_ui.ui menuentry_widget_ui.ui + triggers_tab_ui.ui general_tab_ui.ui action_group_tab_ui.ui + dcop_widget_ui.ui main_buttons_widget_ui.ui voice_settings_tab_ui.ui + info_tab_ui.ui window_trigger_widget_ui.ui action_list_widget_ui.ui + keyboard_input_widget_ui.ui condition_list_widget_ui.ui + gesture_triggers_tab_ui.ui gestures_settings_tab_ui.ui + general_settings_tab_ui.ui voice_input_widget_ui.ui + actions_listview_widget_ui.ui + LINK khotkeys_shared-shared +) diff --git a/khotkeys/shared/CMakeLists.txt b/khotkeys/shared/CMakeLists.txt new file mode 100644 index 000000000..c1e1de043 --- /dev/null +++ b/khotkeys/shared/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### khotkeys_shared (shared) ################## + +set( target khotkeys_shared ) + +set( ${target}_SRCS + action_data.cpp khotkeysglobal.cpp triggers.cpp + windows.cpp settings.cpp actions.cpp input.cpp + conditions.cpp khlistview.cpp khlistbox.cpp + gestures.cpp voices.cpp voicesignature.cpp + sound.cpp soundrecorder.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.0.0 + LINK kio-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/khotkeys/update/CMakeLists.txt b/khotkeys/update/CMakeLists.txt new file mode 100644 index 000000000..13a7dffca --- /dev/null +++ b/khotkeys/update/CMakeLists.txt @@ -0,0 +1,31 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/khotkeys/shared + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### khotkeys_update (executable) ############## + +tde_add_executable( khotkeys_update + SOURCES update.cpp + LINK khotkeys_shared-shared + DESTINATION ${LIB_INSTALL_DIR}/kconf_update_bin +) |