Commit 2a87e0213ebd28b1f560a2141d6e5b3169561116

Authored by Josh Klontz
1 parent a5668629

tell cmake find_package command to look in thirdparty plugins folder

Showing 1 changed file with 3 additions and 0 deletions
openbr/plugins/plugins.cmake
... ... @@ -4,6 +4,9 @@
4 4 # BR_THIRDPARTY_SRC - Additional source code needed by a plugin
5 5 # BR_THIRDPARTY_LIBS - Additional libaries needed by a plugin
6 6  
  7 +# Also look for CMake modules in the thirdparty plugins folder(s)
  8 +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${BR_THIRDPARTY_PLUGINS_DIR})
  9 +
7 10 foreach(DIR ${BR_THIRDPARTY_PLUGINS_DIR})
8 11 file(GLOB PLUGINS ${DIR}/*.cpp ${DIR}/*.h) # Add the headers too so MOC runs on them
9 12 set(BR_THIRDPARTY_PLUGINS ${BR_THIRDPARTY_PLUGINS} ${PLUGINS})
... ...