summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2021-05-05 15:58:58 +0200
committerAlexey Edelev <alexey.edelev@qt.io>2021-05-10 13:17:51 +0200
commit1acbc29ef950369a67256221d10867a32282412c (patch)
tree013dcf8d8be27cda0529c5d51daf2beedfa7b701 /examples
parentb5202bb5cf1bc5060ba7aa2c4679d848001fff02 (diff)
downloadqtactiveqt-1acbc29ef950369a67256221d10867a32282412c.tar.gz
Add support of the type library UUID
dumpcpp supports generating of the sources using the type library UUID. Add syntax that provides this functionality to the qt6_target_typelibs users. Modify the qutlook library to use the new syntax. Amends da3a24c06541b63011a3af91fbae9f9d2ec28912. Pick-to: 6.1 Fixes: QTBUG-93446 Change-Id: Ic0b657bd39f57d32c3d404bee395f4f375a6d7f8 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/activeqt/qutlook/CMakeLists.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/activeqt/qutlook/CMakeLists.txt b/examples/activeqt/qutlook/CMakeLists.txt
index af1de27..5e009fa 100644
--- a/examples/activeqt/qutlook/CMakeLists.txt
+++ b/examples/activeqt/qutlook/CMakeLists.txt
@@ -20,11 +20,18 @@ find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
find_package(Qt6 COMPONENTS AxContainer)
+qt_add_executable(qutlook
+ addressview.cpp addressview.h
+ main.cpp
)
+
set_target_properties(qutlook PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
+
+qt6_target_typelibs(qutlook "msoutl:{00062FFF-0000-0000-C000-000000000046}")
+
target_link_libraries(qutlook PUBLIC
Qt::AxContainer
Qt::Core
@@ -32,13 +39,6 @@ target_link_libraries(qutlook PUBLIC
Qt::Widgets
)
-if(NOT TYPELIBS_ISEMPTY)
- target_sources(qutlook PUBLIC
- addressview.cpp addressview.h
- main.cpp
- )
-endif()
-
install(TARGETS qutlook
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"