tools/hhtracer/CMakeLists.txt
author unC0Rr
Fri, 10 Jan 2025 17:37:34 +0100
changeset 16084 2d65bd46c92f
permissions -rw-r--r--
Start work on hedgehog tracer
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16084
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
     1
cmake_minimum_required(VERSION 3.16)
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
     2
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
     3
project(hhtracer VERSION 0.1 LANGUAGES CXX)
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
     4
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
     5
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
     6
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
     7
find_package(Qt6 REQUIRED COMPONENTS Quick Svg)
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
     8
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
     9
qt_standard_project_setup(REQUIRES 6.5)
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    10
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    11
qt_add_executable(apphhtracer
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    12
    main.cpp
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    13
)
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    14
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    15
qt_add_qml_module(apphhtracer
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    16
    URI hhtracer
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    17
    VERSION 1.0
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    18
    QML_FILES
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    19
        Main.qml
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    20
        SOURCES tracer.h tracer.cpp
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    21
)
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    22
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    23
# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    24
# If you are developing for iOS or macOS you should consider setting an
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    25
# explicit, fixed bundle identifier manually though.
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    26
set_target_properties(apphhtracer PROPERTIES
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    27
#    MACOSX_BUNDLE_GUI_IDENTIFIER com.example.apphhtracer
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    28
    MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    29
    MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    30
    MACOSX_BUNDLE TRUE
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    31
    WIN32_EXECUTABLE TRUE
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    32
)
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    33
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    34
target_link_libraries(apphhtracer
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    35
    PRIVATE Qt6::Quick
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    36
    Qt6::Svg
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    37
)
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    38
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    39
include(GNUInstallDirs)
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    40
install(TARGETS apphhtracer
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    41
    BUNDLE DESTINATION .
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    42
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    43
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2d65bd46c92f Start work on hedgehog tracer
unC0Rr
parents:
diff changeset
    44
)