# TEMPLATE = app # TARGET = friendiqa # CONFIG += release # QT += qml quick gui widgets sql webview dbus webengine cmake_minimum_required(VERSION 3.1.0) project(friendiqa VERSION 0.6 LANGUAGES CXX) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) if(CMAKE_VERSION VERSION_LESS "3.7.0") set(CMAKE_INCLUDE_CURRENT_DIR ON) endif() find_package(Qt5 COMPONENTS Widgets Quick Sql DBus WebView REQUIRED) #Webview Webengine set(MOC_SOURCES common/uploadableimage.h common/xhr.h common/filesystem.h common/remoteauthasyncimageprovider.h common/updatenews.h common/alarm.h) set(SOURCES common/friendiqa.cpp common/uploadableimage.cpp common/xhr.cpp common/filesystem.cpp common/remoteauthasyncimageprovider.cpp common/updatenews.cpp common/alarmandroid.cpp) include_directories(common) add_executable(friendiqa ${SOURCES} ${MOC_SOURCES} application.qrc) target_link_libraries(friendiqa Qt::Core) target_link_libraries(friendiqa Qt::Widgets) target_link_libraries(friendiqa Qt::Quick) target_link_libraries(friendiqa Qt::Sql) target_link_libraries(friendiqa Qt::WebView) target_link_libraries(friendiqa Qt::DBus) # target_link_libraries(friendiqa Qt::Webengine) # qt5_use_modules(friendiqa Core Widgets Quick Sql DBus) install(TARGETS friendiqa DESTINATION bin) #RESOURCES = application.qrc # OTHER_FILES += qml/friendiqa.qml \ # translations/*.ts \ # qml/*.qml # qml/newsqml/*.qml # qml/contactqml/*.qml # qml/photoqml/*.qml # qml/configqml/*.qml # js/*.js #TRANSLATIONS += translations/friendiqa-de.ts \ # translations/friendiqa-es.ts \ # translations/friendiqa-it.ts # HEADERS += \ # common/uploadableimage.h \ # common/xhr.h \ # common/filesystem.h \ # common/remoteauthasyncimageprovider.h \ # common/updatenews.h \ # common/alarm.h #DISTFILES += \ # qml/calendarqml/*.qml \ # translations/*.ts \ # translations/*.qm \ # qml/*.qml \ # qml/newsqml/*.qml \ # qml/contactqml/*.qml \ # qml/photoqml/*.qml \ # qml/configqml/*.qml \ # js/*.js \ # target.path=/usr/bin # desktop.path = /usr/share/applications # desktop.files = images/de.ma-nic.Friendiqa.desktop # icon.path = /usr/share/icons/hicolor/scalable/apps # icon.files = images/Friendiqa.svg # INSTALLS+=target desktop icon