From ab615c4aa6113e98b8a48a9d968d6be4af34cd1d Mon Sep 17 00:00:00 2001 From: Mederic Fourmy <mederic.fourmy@gmail.com> Date: Wed, 27 Apr 2022 17:06:22 +0200 Subject: [PATCH] target_include_directories so that the include directories do not need to be configured in other plugins --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40ac7f90e..71c1833c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -474,7 +474,11 @@ install( ${LIB_INSTALL_DIR}/${PLUGIN_NAME}/cmake ) - +# Specifies include directories to use when compiling the plugin target +# This way, include_directories does not need to be called in plugins depending on this one +target_include_directories(${PLUGIN_NAME} INTERFACE + $<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}> +) #install headers INSTALL(FILES ${HDRS_CAPTURE} -- GitLab