Skip to content

Commit

Permalink
fix: disable PLUGIN, and link to PROJECT_NAME manually
Browse files Browse the repository at this point in the history
This is required for QML Preview to be able to load the module
  • Loading branch information
alirezah95 committed Dec 8, 2022
1 parent e4e49e1 commit bc74d3d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
cmake_minimum_required(VERSION 3.24.0)

project(TreeModel VERSION 1.0 LANGUAGES CXX)

qt_add_qml_module(TreeModel
qt_add_qml_module(treemodel
NO_PLUGIN
URI treemodel
VERSION 1.0
SOURCES
treemodel.cpp treemodel.h treeitem.cpp treeitem.h
)
target_link_libraries(${PROJECT_NAME} PRIVATE
treemodel
)

0 comments on commit bc74d3d

Please sign in to comment.