File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ find_package(Qt6 REQUIRED
13
13
Quick
14
14
QuickControls2
15
15
)
16
+ qt_standard_project_setup()
16
17
17
18
add_subdirectory (src)
Original file line number Diff line number Diff line change 1
- set (CMAKE_AUTOMOC ON )
2
-
3
1
# Automatically link Qt executables to qtmain target on Windows
4
2
cmake_policy (SET CMP0020 NEW)
5
3
4
+ set (CMAKE_INCLUDE_CURRENT_DIR ON )
5
+
6
6
qt6_add_resources(RESOURCES ../resources.qrc)
7
7
8
8
add_executable (qhot
@@ -27,7 +27,7 @@ target_link_libraries(qhot
27
27
Qt6::QuickControls2
28
28
)
29
29
30
- get_target_property (QT_MOC_EXECUTABLE Qt6::moc LOCATION )
30
+ get_target_property (QT_MOC_EXECUTABLE Qt6::moc IMPORTED_LOCATION )
31
31
get_filename_component (QT_INSTALL_PREFIX ${QT_MOC_EXECUTABLE} DIRECTORY )
32
32
if (EXISTS ${QT_INSTALL_PREFIX} )
33
33
install (
@@ -37,3 +37,4 @@ if (EXISTS ${QT_INSTALL_PREFIX})
37
37
)
38
38
endif ()
39
39
40
+ set_target_properties (qhot PROPERTIES MACOSX_BUNDLE ON )
You can’t perform that action at this time.
0 commit comments