tools/map_templates_tool/CMakeLists.txt
author unC0Rr
Mon, 02 Dec 2024 17:36:44 +0100
branchtransitional_engine
changeset 16074 58a2d806fc47
parent 16072 adb44a2d8226
permissions -rw-r--r--
Tweak the rest of map templates

cmake_minimum_required(VERSION 3.16)

project(map_templates_tool VERSION 1.0 LANGUAGES CXX)

set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Qt6 6.2 COMPONENTS Quick REQUIRED)

qt_add_executable(appmap_templates_tool
    main.cpp
)

qt_add_qml_module(appmap_templates_tool
    URI map_templates_tool
    VERSION 1.0
    QML_FILES main.qml 
)

set_target_properties(appmap_templates_tool PROPERTIES
    MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com
    MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
    MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
    MACOSX_BUNDLE TRUE
    WIN32_EXECUTABLE TRUE
)

target_link_libraries(appmap_templates_tool
    PRIVATE Qt6::Quick)

install(TARGETS appmap_templates_tool
    BUNDLE DESTINATION .
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})