Commit 12b25bce authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Allow include and linking with QtMobile and QtMultimedia.

Note that Debian only provides QtMultimedia within QtMobile.
parent 57bb6174
......@@ -3,6 +3,11 @@
project(artikulate)
set ( CMAKE_MODULE_PATH
${CMAKE_SOURCE_DIR}/cmake/modules
${CMAKE_MODULE_PATH}
)
find_package(KDE4 4.9.0 REQUIRED)
include(KDE4Defaults)
......
# - Find Qt Mobility libs
#
# This module determines whether QtMobility is installed.
#
# Copyright (c) 2011, Daniel Marth, <danielmarth@gmx.at>
#
FIND_PATH( QTMOBILITY_INCLUDE_DIR NAMES qmobilityglobal.h PATH_SUFFIXES QtMobility )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( QtMobility DEFAULT_MSG QTMOBILITY_INCLUDE_DIR )
# - Find Qt Multimedia libs
#
# This module determines whether QtMultimedia (nowadays in QtMobility is installed.
#
# Copyright (c) 2013, Andreas Cord-Landwehr, <cordlandwehr@gmail.com>
#
# TODO add check wether not found by other module
FIND_PATH( QTMULTIMEDIA_INCLUDE_DIR NAMES qmediaobject.h PATH_SUFFIXES QtMultimediaKit )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( QtMultimedia DEFAULT_MSG QTMULTIMEDIA_INCLUDE_DIR )
......@@ -2,6 +2,11 @@ include(MacroLogFeature)
find_package(KDeclarative REQUIRED)
# TODO the following selfmade cmake modules are only for now
# remove them when official ones are available
find_package(QtMobility)
find_package(QtMultimedia)
add_subdirectory(qml)
# set include directories
......@@ -9,6 +14,8 @@ include_directories(
${QT_INCLUDE}
${KDE4_INCLUDES}
${CMAKE_CURRENT_BINARY_DIR}
${QTMOBILITY_INCLUDE_DIR}
${QTMULTIMEDIA_INCLUDE_DIR}
)
# set the source code files from which ArtiKulate is compiled
......@@ -33,6 +40,7 @@ set(artikulate_SRCS
declarativeitems/applicationbackground.cpp
)
# message("${QT_INCLUDE_DIR}")
kde4_add_executable(artikulate ${artikulate_SRCS})
......@@ -49,6 +57,7 @@ target_link_libraries( artikulate
${QT_QTXMLPATTERNS_LIBRARY}
${QT_QTSQL_LIBRARY}
${PHONON_LIBS}
QtMultimediaKit
)
install(TARGETS artikulate ${INSTALL_TARGETS_DEFAULT_ARGS})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment