diff --git a/cmake/DPF-plugin.cmake b/cmake/DPF-plugin.cmake index 8bac5f68..828221f0 100644 --- a/cmake/DPF-plugin.cmake +++ b/cmake/DPF-plugin.cmake @@ -28,7 +28,14 @@ # src/MyPlugin.cpp # FILES_UI # src/MyUI.cpp) +# +# target_include_directories(MyPlugin +# PUBLIC src) # ``` +# +# Important: note that properties, such as include directories, definitions, +# and linked libraries *must* be marked with `PUBLIC` so they take effect and +# propagate into all the plugin targets. include(CMakeParseArguments)