summaryrefslogtreecommitdiffstats
path: root/examples/activeqt/multiple
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2021-04-13 18:55:01 +0200
committerAlexey Edelev <alexey.edelev@qt.io>2021-04-27 15:53:33 +0200
commitc4623d4296f0a5502cba5f2395b97bd28a83dd6f (patch)
tree0e5321aab1fe8c45110c8046e3b15db7792e134a /examples/activeqt/multiple
parentbc04ce3195048a8e236aa510a7a1e6ffa4b742c5 (diff)
Update tests and examples to use the new '_axserver_' functions
Use the new '_axserver_' function in tests and examples associated to creating of the ActiveX sever. Squash find_package calls. Change-Id: Iacdba7b673ae9cfcc7d9e1ff82d0884e330166ab Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/activeqt/multiple')
-rw-r--r--examples/activeqt/multiple/CMakeLists.txt14
1 files changed, 4 insertions, 10 deletions
diff --git a/examples/activeqt/multiple/CMakeLists.txt b/examples/activeqt/multiple/CMakeLists.txt
index 468ea99..b318d0b 100644
--- a/examples/activeqt/multiple/CMakeLists.txt
+++ b/examples/activeqt/multiple/CMakeLists.txt
@@ -15,22 +15,16 @@ endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/activeqt/multiple")
-find_package(Qt6 COMPONENTS Core)
-find_package(Qt6 COMPONENTS Gui)
-find_package(Qt6 COMPONENTS Widgets)
-find_package(Qt6 COMPONENTS AxServer)
+find_package(Qt6 COMPONENTS Core Gui Widgets AxServer)
-qt_add_executable(multipleax
+qt6_add_axserver_library(multipleax
ax1.h
ax2.h
main.cpp
-)
-set_target_properties(multipleax PROPERTIES
- WIN32_EXECUTABLE TRUE
- MACOSX_BUNDLE TRUE
+ multipleax.def
+ multipleax.rc
)
target_link_libraries(multipleax PUBLIC
- Qt::AxServer
Qt::Core
Qt::Gui
Qt::Widgets