# HG changeset patch # User unc0rr # Date 1422133722 -10800 # Node ID 97d00ace1aed7658697756f9e4bcfe2741c09260 # Parent dc587913987cea7683b9b6a138770441212b0454 CMake script for qmlFrontend diff -r dc587913987c -r 97d00ace1aed qmlFrontend/CMakeLists.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qmlFrontend/CMakeLists.txt Sun Jan 25 00:08:42 2015 +0300 @@ -0,0 +1,22 @@ +cmake_minimum_required(VERSION 2.8.11) + +project(hedgewars) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) +set(CMAKE_AUTOMOC ON) + +find_package(OpenGL) + +find_package(Qt5 COMPONENTS Core Qml Quick Gui) + +add_executable(hedgewars WIN32 + main + hwengine + previewimageprovider + themeiconprovider + qtquick2applicationviewer/qtquick2applicationviewer + ) + +include_directories(${OPENGL_INCLUDE_DIR}) + +target_link_libraries(hedgewars Qt5::Core Qt5::Gui Qt5::Quick Qt5::Qml) diff -r dc587913987c -r 97d00ace1aed qmlFrontend/qmlFrontend.pro --- a/qmlFrontend/qmlFrontend.pro Sat Jan 03 23:46:26 2015 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -# Add more folders to ship with the application, here -folder_01.source = qml/qmlFrontend -folder_01.target = qml -DEPLOYMENTFOLDERS = folder_01 - -# Additional import path used to resolve QML modules in Creator's code model -QML_IMPORT_PATH = - -# If your application uses the Qt Mobility libraries, uncomment the following -# lines and add the respective components to the MOBILITY variable. -# CONFIG += mobility -# MOBILITY += - -# The .cpp file which was generated for your project. Feel free to hack it. -SOURCES += main.cpp \ - hwengine.cpp \ - previewimageprovider.cpp \ - themeiconprovider.cpp - -# Installation path -# target.path = - -# Please do not modify the following two lines. Required for deployment. -include(qtquick2applicationviewer/qtquick2applicationviewer.pri) -qtcAddDeployment() - -HEADERS += \ - qtquick2applicationviewer/qtquick2applicationviewer.h \ - hwengine.h \ - flib.h \ - previewimageprovider.h \ - themeiconprovider.h - -OTHER_FILES += \ - qtquick2applicationviewer/qtquick2applicationviewer.pri \ - qml/qmlFrontend/HWButton.qml \ - qml/qmlFrontend/main.qml \ - qml/qmlFrontend/LocalGame.qml \ - qml/qmlFrontend/GameConfig.qml \ - qml/qmlFrontend/First.qml \ - qml/qmlFrontend/HWComboBox.qml