Files
qt-creator/cmake/Config.cmake.in
Eike Ziller c510cf79d8 cmake build: Add option for exporting plugins
That can be used for external plugins. Just add the option "EXPORT" to
your "add_qtc_plugin(MyPlugin ...." call. Other plugins can then do
"find_package(QtCreatorMyPlugin)" and link against
"QtCreator::MyPlugin".

Supports both using a Devel install or using a build directory of the
plugin that is depended on.

Task-number: QTCREATORBUG-22803
Change-Id: I80724eca8c828d2d5be307d32f3125c4e3bd8b3a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-10-22 11:45:12 +00:00

6 lines
127 B
CMake

@PACKAGE_INIT@
if (NOT TARGET QtCreator::@target_name@)
include ("${CMAKE_CURRENT_LIST_DIR}/@export@Targets.cmake")
endif()