summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block-cmake/cmake/Modules
diff options
context:
space:
mode:
authorJosh Blum2011-09-24 08:34:46 -0700
committerJosh Blum2011-09-24 08:34:46 -0700
commit3e7c061f3020bf6d5cf5cff47a144e9a23f427ea (patch)
tree48fdaf5dc2a680effaedfeb1b31057f159b3b343 /gr-howto-write-a-block-cmake/cmake/Modules
parent942fa1c2e226ac00ac8ac0d8ca1538f7015d0c5a (diff)
downloadgnuradio-3e7c061f3020bf6d5cf5cff47a144e9a23f427ea.tar.gz
gnuradio-3e7c061f3020bf6d5cf5cff47a144e9a23f427ea.tar.bz2
gnuradio-3e7c061f3020bf6d5cf5cff47a144e9a23f427ea.zip
howto: updated find gruel and core modules to match recommended style
Diffstat (limited to 'gr-howto-write-a-block-cmake/cmake/Modules')
-rw-r--r--gr-howto-write-a-block-cmake/cmake/Modules/FindGnuradioCore.cmake8
-rw-r--r--gr-howto-write-a-block-cmake/cmake/Modules/FindGruel.cmake8
2 files changed, 8 insertions, 8 deletions
diff --git a/gr-howto-write-a-block-cmake/cmake/Modules/FindGnuradioCore.cmake b/gr-howto-write-a-block-cmake/cmake/Modules/FindGnuradioCore.cmake
index f76364acf..ffa6582a2 100644
--- a/gr-howto-write-a-block-cmake/cmake/Modules/FindGnuradioCore.cmake
+++ b/gr-howto-write-a-block-cmake/cmake/Modules/FindGnuradioCore.cmake
@@ -1,11 +1,11 @@
INCLUDE(FindPkgConfig)
-PKG_CHECK_MODULES(GNURADIO_CORE gnuradio-core)
-IF(NOT GNURADIO_CORE_FOUND)
+PKG_CHECK_MODULES(PC_GNURADIO_CORE gnuradio-core QUIET)
FIND_PATH(
GNURADIO_CORE_INCLUDE_DIRS
NAMES gr_random.h
HINTS $ENV{GNURADIO_CORE_DIR}/include/gnuradio
+ ${PC_GNURADIO_CORE_INCLUDE_DIRS}
PATHS /usr/local/include/gnuradio
/usr/include/gnuradio
)
@@ -14,6 +14,7 @@ FIND_LIBRARY(
GNURADIO_CORE_LIBRARIES
NAMES gnuradio-core
HINTS $ENV{GNURADIO_CORE_DIR}/lib
+ ${PC_GNURADIO_CORE_LIBRARIES}
PATHS /usr/local/lib
/usr/local/lib64
/usr/lib
@@ -22,5 +23,4 @@ FIND_LIBRARY(
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GNURADIO_CORE DEFAULT_MSG GNURADIO_CORE_LIBRARIES GNURADIO_CORE_INCLUDE_DIRS)
-
-ENDIF(NOT GNURADIO_CORE_FOUND)
+MARK_AS_ADVANCED(GNURADIO_CORE_LIBRARIES GNURADIO_CORE_INCLUDE_DIRS)
diff --git a/gr-howto-write-a-block-cmake/cmake/Modules/FindGruel.cmake b/gr-howto-write-a-block-cmake/cmake/Modules/FindGruel.cmake
index c142c905e..3c21af91d 100644
--- a/gr-howto-write-a-block-cmake/cmake/Modules/FindGruel.cmake
+++ b/gr-howto-write-a-block-cmake/cmake/Modules/FindGruel.cmake
@@ -1,11 +1,11 @@
INCLUDE(FindPkgConfig)
-PKG_CHECK_MODULES(GRUEL gnuradio-core)
-IF(NOT GRUEL_FOUND)
+PKG_CHECK_MODULES(PC_GRUEL gnuradio-core QUIET)
FIND_PATH(
GRUEL_INCLUDE_DIRS
NAMES gruel/attributes.h
HINTS $ENV{GRUEL_DIR}/include
+ ${PC_GRUEL_INCLUDE_DIRS}
PATHS /usr/local/include
/usr/include
)
@@ -14,6 +14,7 @@ FIND_LIBRARY(
GRUEL_LIBRARIES
NAMES gruel
HINTS $ENV{GRUEL_DIR}/lib
+ ${PC_GRUEL_LIBRARIES}
PATHS /usr/local/lib
/usr/local/lib64
/usr/lib
@@ -22,5 +23,4 @@ FIND_LIBRARY(
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GRUEL DEFAULT_MSG GRUEL_LIBRARIES GRUEL_INCLUDE_DIRS)
-
-ENDIF(NOT GRUEL_FOUND)
+MARK_AS_ADVANCED(GRUEL_LIBRARIES GRUEL_INCLUDE_DIRS)