summaryrefslogtreecommitdiffstats
path: root/heimdall-frontend/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'heimdall-frontend/CMakeLists.txt')
-rw-r--r--heimdall-frontend/CMakeLists.txt26
1 files changed, 20 insertions, 6 deletions
diff --git a/heimdall-frontend/CMakeLists.txt b/heimdall-frontend/CMakeLists.txt
index 95889b3..7cf87fe 100644
--- a/heimdall-frontend/CMakeLists.txt
+++ b/heimdall-frontend/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8.4)
+cmake_minimum_required(VERSION 2.8.11)
project(heimdall-frontend)
@@ -8,6 +8,8 @@ set(LIBPIT_INCLUDE_DIRS
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON) # moc files are generated in build (current) directory
+find_package(Qt5Qml REQUIRED)
+find_package(Qt5Quick REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(ZLIB REQUIRED)
@@ -28,17 +30,26 @@ set(HEIMDALL_FRONTEND_SOURCE_FILES
source/PackageData.cpp
source/Packaging.cpp)
+set(HEIMDALL_FRONTEND_QML_FILES
+ source/qml/main.qml
+ source/qml/Root.qml
+ source/qml/RootForm.ui.qml
+ source/qml/DropFiles.qml
+ source/qml/DropFilesForm.ui.qml)
+
qt5_wrap_ui(HEIMDALL_FRONTEND_FORMS
mainwindow.ui
aboutform.ui)
qt5_add_resources(HEIMDALL_FRONTEND_RESOURCES
- mainwindow.qrc)
+ source/qml/qml.qrc
+ source/qml/resources.qrc)
add_executable(heimdall-frontend WIN32
MACOSX_BUNDLE
${HEIMDALL_FRONTEND_SOURCE_FILES}
- ${HEIMDALL_FRONTEND_FORMS}
+ ${HEIMDALL_FRONTEND_FORMS} # So IDEs know about forms
+ ${HEIMDALL_FRONTEND_QML_FILES} # So IDEs know about QML
${HEIMDALL_FRONTEND_RESOURCES})
include(LargeFiles)
@@ -47,6 +58,9 @@ use_large_files(heimdall-frontend YES)
set_property(TARGET heimdall-frontend
APPEND PROPERTY COMPILE_DEFINITIONS "QT_LARGEFILE_SUPPORT")
-target_link_libraries(heimdall-frontend pit)
-target_link_libraries(heimdall-frontend Qt5::Widgets)
-target_link_libraries(heimdall-frontend z)
+target_link_libraries(heimdall-frontend
+ pit
+ Qt5::Qml
+ Qt5::Quick
+ Qt5::Widgets
+ z)