Skip to content

Commit

Permalink
Fix qml modules
Browse files Browse the repository at this point in the history
  • Loading branch information
gsurkov committed Jun 8, 2024
1 parent 9f2a6b2 commit 327dce8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

find_package(Qt6
COMPONENTS
Core
Core5Compat
Gui
Network
SerialPort
Qml
Quick
QuickControls2
Widgets
REQUIRED CONFIG)
Expand Down
11 changes: 8 additions & 3 deletions application/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
qt_add_executable(${CMAKE_PROJECT_NAME})

qt_add_qml_module(${CMAKE_PROJECT_NAME}
URI "."
RESOURCES
"qml.qrc"
RESOURCE_PREFIX
":/"
)

target_sources(${CMAKE_PROJECT_NAME}
PRIVATE
"main.cpp"
Expand All @@ -17,9 +25,6 @@ target_link_libraries(${CMAKE_PROJECT_NAME}
PRIVATE
dfu
backend
Qt::Gui
Qt::Qml
Qt::Quick
Qt::QuickControls2
Qt::Widgets
)

0 comments on commit 327dce8

Please sign in to comment.