equal
deleted
inserted
replaced
|
1 cmake_minimum_required(VERSION 3.16) |
|
2 |
|
3 project(hhtracer VERSION 0.1 LANGUAGES CXX) |
|
4 |
|
5 set(CMAKE_CXX_STANDARD_REQUIRED ON) |
|
6 |
|
7 find_package(Qt6 REQUIRED COMPONENTS Quick Svg) |
|
8 |
|
9 qt_standard_project_setup(REQUIRES 6.5) |
|
10 |
|
11 qt_add_executable(apphhtracer |
|
12 main.cpp |
|
13 ) |
|
14 |
|
15 qt_add_qml_module(apphhtracer |
|
16 URI hhtracer |
|
17 VERSION 1.0 |
|
18 QML_FILES |
|
19 Main.qml |
|
20 SOURCES tracer.h tracer.cpp |
|
21 ) |
|
22 |
|
23 # Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1. |
|
24 # If you are developing for iOS or macOS you should consider setting an |
|
25 # explicit, fixed bundle identifier manually though. |
|
26 set_target_properties(apphhtracer PROPERTIES |
|
27 # MACOSX_BUNDLE_GUI_IDENTIFIER com.example.apphhtracer |
|
28 MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} |
|
29 MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} |
|
30 MACOSX_BUNDLE TRUE |
|
31 WIN32_EXECUTABLE TRUE |
|
32 ) |
|
33 |
|
34 target_link_libraries(apphhtracer |
|
35 PRIVATE Qt6::Quick |
|
36 Qt6::Svg |
|
37 ) |
|
38 |
|
39 include(GNUInstallDirs) |
|
40 install(TARGETS apphhtracer |
|
41 BUNDLE DESTINATION . |
|
42 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
|
43 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
|
44 ) |