tools/map_templates_tool/CMakeLists.txt
branchtransitional_engine
changeset 16072 adb44a2d8226
equal deleted inserted replaced
16071:14b83df1832b 16072:adb44a2d8226
       
     1 cmake_minimum_required(VERSION 3.16)
       
     2 
       
     3 project(map_templates_tool VERSION 1.0 LANGUAGES CXX)
       
     4 
       
     5 set(CMAKE_AUTOMOC ON)
       
     6 set(CMAKE_CXX_STANDARD_REQUIRED ON)
       
     7 
       
     8 find_package(Qt6 6.2 COMPONENTS Quick REQUIRED)
       
     9 
       
    10 qt_add_executable(appmap_templates_tool
       
    11     main.cpp
       
    12 )
       
    13 
       
    14 qt_add_qml_module(appmap_templates_tool
       
    15     URI map_templates_tool
       
    16     VERSION 1.0
       
    17     QML_FILES main.qml 
       
    18 )
       
    19 
       
    20 set_target_properties(appmap_templates_tool PROPERTIES
       
    21     MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com
       
    22     MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
       
    23     MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
       
    24     MACOSX_BUNDLE TRUE
       
    25     WIN32_EXECUTABLE TRUE
       
    26 )
       
    27 
       
    28 target_link_libraries(appmap_templates_tool
       
    29     PRIVATE Qt6::Quick)
       
    30 
       
    31 install(TARGETS appmap_templates_tool
       
    32     BUNDLE DESTINATION .
       
    33     LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})