project(mediaplayer_src) set(MEDIAPLAYER lomiri-mediaplayer-app) include_directories( ${CMAKE_BINARY_DIR} ${sdkhelper_SOURCE_DIR} ) set(SRC mediaplayer.cpp mediaplayer.h main.cpp) add_executable(${MEDIAPLAYER} ${SRC}) target_link_libraries(${MEDIAPLAYER} Qt5::Gui Qt5::Widgets Qt5::Core Qt5::Qml Qt5::Quick ) if (ADD_MPRIS) target_link_libraries (${MEDIAPLAYER} Qt5::DBus) target_compile_definitions (${MEDIAPLAYER} PUBLIC ADD_MPRIS) endif () install(TARGETS ${MEDIAPLAYER} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) set(QML_DIR qml) install(DIRECTORY ${QML_DIR} DESTINATION ${MEDIAPLAYER_DIR} ) add_subdirectory(qml)