diff options
author | Tim O'Shea <tim.oshea753@gmail.com> | 2013-04-04 09:05:54 -0400 |
---|---|---|
committer | Tim O'Shea <tim.oshea753@gmail.com> | 2013-04-18 14:47:59 -0400 |
commit | 7f848f77e9130f7df6500e736407f3da886d5eec (patch) | |
tree | 772900e3c2e47ba6bf060805b311daba0025ab0d /cmake | |
parent | 2e8b7dfa715e451b61cfc2fadff920dd316594c0 (diff) |
cmake: always find PMT includes in FindGnuradio.cmake
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/FindGnuradio.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cmake/Modules/FindGnuradio.cmake b/cmake/Modules/FindGnuradio.cmake index bd45a95819..dc4028bcd1 100644 --- a/cmake/Modules/FindGnuradio.cmake +++ b/cmake/Modules/FindGnuradio.cmake @@ -104,3 +104,20 @@ GR_MODULE(UHD gnuradio-uhd gr_uhd/usrp_sink.h gnuradio-uhd) GR_MODULE(VOCODER gnuradio-vocoder vocoder/alaw_encode_sb.h gnuradio-vocoder)
GR_MODULE(WAVELET gnuradio-wavelet wavelet/wavelet_ff.h gnuradio-wavelet)
+# Check for PMT Library
+FIND_PATH(
+ PMT_INCLUDE_DIRS
+ NAMES pmt/pmt.h
+ HINTS $ENV{PMT_DIR}/include
+ ${PC_PMT_INCLUDEDIR}
+ ${CMAKE_INSTALL_PREFIX}/include
+ PATHS /usr/local/include
+ /usr/include
+)
+MARK_AS_ADVANCED(PMT_INCLUDE_DIRS)
+if(PMT_INCLUDE_DIRS)
+ message(STATUS "PMT includes in ${PMT_INCLUDE_DIRS}")
+else()
+ message(FATAL "Could not find PMT includes!")
+endif()
+
|