File tree Expand file tree Collapse file tree 3 files changed +15
-14
lines changed Expand file tree Collapse file tree 3 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -8,20 +8,7 @@ qt_add_executable(${APP_TARGET}
88 appmenubar.h
99)
1010
11- qt_add_qml_module(${APP_TARGET} 
12-  URI ScratchCPP
13-  VERSION  1.0
14-  QML_FILES main.qml
15- )
16- 
17- set (QML_IMPORT_PATH "${QML_IMPORT_PATH} ;${CMAKE_CURRENT_LIST_DIR} " 
18-  CACHE  STRING  "Qt Creator extra QML import paths" 
19-  FORCE
20- )
21- 
22- list (APPEND  QML_IMPORT_PATH ${CMAKE_CURRENT_SOURCE_DIR}  ${CMAKE_CURRENT_BINARY_DIR} )
23- list (REMOVE_DUPLICATES  QML_IMPORT_PATH)
24- set (QML_IMPORT_PATH ${QML_IMPORT_PATH}  CACHE  STRING  ""  FORCE)
11+ add_subdirectory (qml)
2512
2613set_target_properties (${APP_TARGET}  PROPERTIES
2714 MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com
Original file line number Diff line number Diff line change 1+ qt_add_qml_module(${APP_TARGET} 
2+  URI ScratchCPP
3+  VERSION  1.0
4+  QML_FILES main.qml
5+ )
6+ 
7+ set (QML_IMPORT_PATH "${QML_IMPORT_PATH} ;${CMAKE_CURRENT_LIST_DIR} " 
8+  CACHE  STRING  "Qt Creator extra QML import paths" 
9+  FORCE
10+ )
11+ 
12+ list (APPEND  QML_IMPORT_PATH ${CMAKE_CURRENT_SOURCE_DIR}  ${CMAKE_CURRENT_BINARY_DIR} )
13+ list (REMOVE_DUPLICATES  QML_IMPORT_PATH)
14+ set (QML_IMPORT_PATH ${QML_IMPORT_PATH}  CACHE  STRING  ""  FORCE)
File renamed without changes.
                         You can’t perform that action at this time. 
           
                  
0 commit comments