1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../) # For phonon/ includes.
add_subdirectory(qml)
set(declarative_SRCS
audiooutputelement.cpp
mediaelement.cpp
metadata.cpp
plugin.cpp
subtitleelement.cpp
volumefadereffectelement.cpp
videoformatspy.cpp
videooutputelement.cpp
# Work around bug in QtCreator not showing important things
abstractinitable.h
${phonon_QMLS}
)
phonon_add_declarative_plugin(phononqmlplugin ${declarative_SRCS})
target_link_libraries(phononqmlplugin
${PHONON_LIBS}
)
qt5_use_modules(phononqmlplugin Core Gui Declarative)
install(TARGETS phononqmlplugin DESTINATION ${PHONON_QT_IMPORTS_INSTALL_DIR}/Phonon)
install(FILES ${phonon_QMLS} DESTINATION ${PHONON_QT_IMPORTS_INSTALL_DIR}/Phonon)
|