summaryrefslogtreecommitdiffstats
path: root/examples/activeqt/wrapper/CMakeLists.txt
blob: f89b7e459782746c35785787fcc7e5d149e1b7b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required(VERSION 3.16)
project(wrapperax LANGUAGES CXX)

set(CMAKE_AUTOMOC ON)

if(NOT DEFINED INSTALL_EXAMPLESDIR)
    set(INSTALL_EXAMPLESDIR "examples")
endif()

set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/activeqt/wrapper")

find_package(Qt6 REQUIRED COMPONENTS AxServer Core Gui Widgets)

qt6_add_axserver_library(wrapperax
    main.cpp
    wrapperax.def
    wrapperax.rc
)

target_link_libraries(wrapperax PUBLIC
    Qt::Core
    Qt::Gui
    Qt::Widgets
)

install(TARGETS wrapperax
    RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
    BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
    LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)