forked from qt-creator/qt-creator
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>
6 lines
127 B
CMake
6 lines
127 B
CMake
@PACKAGE_INIT@
|
|
|
|
if (NOT TARGET QtCreator::@target_name@)
|
|
include ("${CMAKE_CURRENT_LIST_DIR}/@export@Targets.cmake")
|
|
endif()
|