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( ) +