From bc3dc0201640bb53435193a21849a74edb14e00c Mon Sep 17 00:00:00 2001 From: samelian Date: Tue, 3 May 2011 21:45:59 +0000 Subject: [PATCH] [amarok/yauap-engine] added forgotten cmake files git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/amarok@1230312 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- amarok/src/engine/yauap/CMakeLists.txt | 42 +++++++++++++++++++ amarok/src/engine/yauap/ConfigureChecks.cmake | 23 ++++++++++ 2 files changed, 65 insertions(+) create mode 100644 amarok/src/engine/yauap/CMakeLists.txt create mode 100644 amarok/src/engine/yauap/ConfigureChecks.cmake diff --git a/amarok/src/engine/yauap/CMakeLists.txt b/amarok/src/engine/yauap/CMakeLists.txt new file mode 100644 index 00000000..632ae36e --- /dev/null +++ b/amarok/src/engine/yauap/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 +# +################################################# + +include( ConfigureChecks.cmake ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/amarok/src + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${DBUS_TQT_INCLUDE_DIRS} + ${DBUS_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES + amarok_yauap-engine_plugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### libamarok_yauap-engine_plugin (module) #### + +tde_add_kpart( libamarok_yauap-engine_plugin AUTOMOC + SOURCES yauap-engine.cpp + LINK amarok-shared ${DBUS_TQT_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/amarok/src/engine/yauap/ConfigureChecks.cmake b/amarok/src/engine/yauap/ConfigureChecks.cmake new file mode 100644 index 00000000..ff8ad1b2 --- /dev/null +++ b/amarok/src/engine/yauap/ConfigureChecks.cmake @@ -0,0 +1,23 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +# dbus-1 +pkg_search_module( DBUS dbus-1 ) +if( NOT DBUS_FOUND ) + tde_message_fatal( "dbus-1 is required, but was not found on your system" ) +endif( ) + +# dbus-tqt +pkg_search_module( DBUS_TQT dbus-tqt ) +if( NOT DBUS_TQT_FOUND ) + tde_message_fatal( "dbus-tqt is required, but was not found on your system" ) +endif( ) +