diff --git a/CMakeLists.txt b/CMakeLists.txt index 40ac7f90e4c0ac7184008ea55dfcb250ce40061a..71c1833c791d83c8c57394d83e68486ed7a4a240 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}