Commit 7cf39e3d authored by LordTermor's avatar LordTermor

Enabled QtQuick compiler

parent 11c2600c
......@@ -2,10 +2,20 @@ cmake_minimum_required(VERSION 3.14)
project(pamac-qt)
find_package(Qt5Core REQUIRED)
find_package(Qt5QuickCompiler)
qt5_add_resources(RESOURCES qml.qrc)
if ( CMAKE_BUILD_TYPE STREQUAL "Debug" )
qt5_add_resources(RESOURCES qml.qrc)
elseif ( CMAKE_BUILD_TYPE STREQUAL "Debug" )
qtquick_compiler_add_resources(RESOURCES qml.qrc)
endif ( CMAKE_BUILD_TYPE STREQUAL "Debug" )
file(GLOB app_src "src/cpp/include/*.h" "src/cpp/src/*.cpp")
add_executable(${PROJECT_NAME} ${app_src} ${RESOURCES})
set_target_properties(${PROJECT_NAME} PROPERTIES AUTOMOC TRUE)
set_target_properties(${PROJECT_NAME} PROPERTIES AUTORCC TRUE)
add_definitions(-DQT_QML_DEBUG)
......
import QtQuick 2.13
import QtQuick.Controls 2.13
import "../../js/JSUtils.js"
import "../../js/JSUtils.js" as JSUtils
Item {
Row{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment