From 2a87e0213ebd28b1f560a2141d6e5b3169561116 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Mon, 22 Jul 2013 11:56:17 -0400 Subject: [PATCH] tell cmake find_package command to look in thirdparty plugins folder --- openbr/plugins/plugins.cmake | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/openbr/plugins/plugins.cmake b/openbr/plugins/plugins.cmake index d821bad..163e15c 100644 --- a/openbr/plugins/plugins.cmake +++ b/openbr/plugins/plugins.cmake @@ -4,6 +4,9 @@ # BR_THIRDPARTY_SRC - Additional source code needed by a plugin # BR_THIRDPARTY_LIBS - Additional libaries needed by a plugin +# Also look for CMake modules in the thirdparty plugins folder(s) +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${BR_THIRDPARTY_PLUGINS_DIR}) + 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}) -- libgit2 0.21.4