From 90c22db67a4ae19314ca7f651dc14f1c010db980 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Fri, 21 May 2021 23:11:19 +0200 Subject: [PATCH] cmake: more documentation --- cmake/DPF-plugin.cmake | 7 +++++++ 1 file changed, 7 insertions(+) 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)