From c57520e491f420dc83d44ce5382c403192ce4836 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Mon, 1 Apr 2019 15:49:47 +0200 Subject: Document how to use CMake on Qt Core, Qt GUI's central pages Add documentation on how to use a module from CMake, alongside the existing documentation about qmake. Separate generic info from module-specific examples, to make it possible to use one include file in all modules. While at it, also remove the mentioning of the central include; it is not something we should actively advocate anymore. Instead, the documentation of every class gives the correct include to use. Task-number: QTBUG-73058 Change-Id: I6b3c0e5ea218dd9c06a491c8fb799a7fcf42dd92 Reviewed-by: Leena Miettinen --- src/gui/doc/snippets/overview/using-qt-gui.cmake | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 src/gui/doc/snippets/overview/using-qt-gui.cmake (limited to 'src/gui/doc/snippets/overview/using-qt-gui.cmake') diff --git a/src/gui/doc/snippets/overview/using-qt-gui.cmake b/src/gui/doc/snippets/overview/using-qt-gui.cmake new file mode 100644 index 00000000000..aecfa458a02 --- /dev/null +++ b/src/gui/doc/snippets/overview/using-qt-gui.cmake @@ -0,0 +1,2 @@ +find_package(Qt5 COMPONENTS Gui REQUIRED) +target_link_libraries(mytarget Qt5::Gui) -- cgit v1.2.3