summaryrefslogtreecommitdiff
path: root/gr-utils/src/python/modtool/gr-newmod/cmake/Modules/FindGruel.cmake
diff options
context:
space:
mode:
authorMartin Braun2013-01-25 15:43:02 +0100
committerMartin Braun2013-01-25 17:03:49 +0100
commitf24128ea9036f68e61ff9350ce86ec619f9ae286 (patch)
tree471a35e5354836da1fc173626a4829d2d2e2b310 /gr-utils/src/python/modtool/gr-newmod/cmake/Modules/FindGruel.cmake
parenta62f90d8cc96b9dea9289ad6e420d1c0b16f6c36 (diff)
downloadgnuradio-f24128ea9036f68e61ff9350ce86ec619f9ae286.tar.gz
gnuradio-f24128ea9036f68e61ff9350ce86ec619f9ae286.tar.bz2
gnuradio-f24128ea9036f68e61ff9350ce86ec619f9ae286.zip
utils: modtool now installs an example dir instead of the bz2
Diffstat (limited to 'gr-utils/src/python/modtool/gr-newmod/cmake/Modules/FindGruel.cmake')
-rw-r--r--gr-utils/src/python/modtool/gr-newmod/cmake/Modules/FindGruel.cmake26
1 files changed, 26 insertions, 0 deletions
diff --git a/gr-utils/src/python/modtool/gr-newmod/cmake/Modules/FindGruel.cmake b/gr-utils/src/python/modtool/gr-newmod/cmake/Modules/FindGruel.cmake
new file mode 100644
index 000000000..58dff7044
--- /dev/null
+++ b/gr-utils/src/python/modtool/gr-newmod/cmake/Modules/FindGruel.cmake
@@ -0,0 +1,26 @@
+INCLUDE(FindPkgConfig)
+PKG_CHECK_MODULES(PC_GRUEL gruel)
+
+FIND_PATH(
+ GRUEL_INCLUDE_DIRS
+ NAMES gruel/attributes.h
+ HINTS $ENV{GRUEL_DIR}/include
+ ${PC_GRUEL_INCLUDEDIR}
+ PATHS /usr/local/include
+ /usr/include
+)
+
+FIND_LIBRARY(
+ GRUEL_LIBRARIES
+ NAMES gruel
+ HINTS $ENV{GRUEL_DIR}/lib
+ ${PC_GRUEL_LIBDIR}
+ PATHS /usr/local/lib
+ /usr/local/lib64
+ /usr/lib
+ /usr/lib64
+)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(GRUEL DEFAULT_MSG GRUEL_LIBRARIES GRUEL_INCLUDE_DIRS)
+MARK_AS_ADVANCED(GRUEL_LIBRARIES GRUEL_INCLUDE_DIRS)