From a5668629f79cf238dd945cb9cf86580e014ec4cb Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Mon, 22 Jul 2013 11:03:32 -0400 Subject: [PATCH] introduced a mechanism for compiling in plugins that live outside the plugins folder --- openbr/plugins/plugins.cmake | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/openbr/plugins/plugins.cmake b/openbr/plugins/plugins.cmake index 1e35e7b..d821bad 100644 --- a/openbr/plugins/plugins.cmake +++ b/openbr/plugins/plugins.cmake @@ -1,5 +1,13 @@ -# Add source to BR_THIRDPARTY_SRC -# Add libs to BR_THIRDPARTY_LIBS +# Optional Appendable CMake Variables: +# BR_THIRDPARTY_PLUGINS - Additional plugins +# BR_THIRDPARTY_PLUGINS_DIR - Additional folder(s) of plugins +# BR_THIRDPARTY_SRC - Additional source code needed by a plugin +# BR_THIRDPARTY_LIBS - Additional libaries needed by a plugin + +foreach(DIR ${BR_THIRDPARTY_PLUGINS_DIR}) + file(GLOB PLUGINS ${DIR}/*.cpp ${DIR}/*.h) # Add the headers too so MOC runs on them + set(BR_THIRDPARTY_PLUGINS ${BR_THIRDPARTY_PLUGINS} ${PLUGINS}) +endforeach() file(GLOB PLUGINS plugins/*.cpp plugins/*.h) foreach(PLUGIN ${PLUGINS} ${BR_THIRDPARTY_PLUGINS}) -- libgit2 0.21.4