Permalink
Browse files

Link to liquid-dsp

1 parent 4504736 commit 0ae5394e68252019b5b0abee814391c1c5c1674f @miek committed Jun 5, 2016
Showing with 25 additions and 0 deletions.
  1. +3 −0 CMakeLists.txt
  2. +22 −0 cmake/Modules/FindLiquid.cmake
View
@@ -55,13 +55,15 @@ find_package(Boost COMPONENTS system program_options REQUIRED)
set(GR_REQUIRED_COMPONENTS RUNTIME ANALOG BLOCKS FILTER PMT)
find_package(Gnuradio REQUIRED)
pkg_check_modules(FFTW REQUIRED fftw3f)
+find_package(Liquid REQUIRED)
include_directories(
${GNURADIO_RUNTIME_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${QT_INCLUDES}
${FFTW_INCLUDEDIR}
${FFTW_INCLUDE_DIRS}
+ ${LIQUID_INCLUDES}
)
link_directories(
@@ -76,6 +78,7 @@ target_link_libraries(inspectrum
${GNURADIO_ALL_LIBRARIES}
${QT_LIBRARIES}
${FFTW_LIBRARIES}
+ ${LIQUID_LIBRARIES}
${extraLibs}
)
set(INSTALL_DEFAULT_BINDIR "bin" CACHE STRING "Appended to CMAKE_INSTALL_PREFIX")
@@ -0,0 +1,22 @@
+# - Find LIQUID
+# Find the native LIQUID includes and library
+#
+# LIQUID_INCLUDES - where to find LIQUID.h
+# LIQUID_LIBRARIES - List of libraries when using LIQUID.
+# LIQUID_FOUND - True if LIQUID found.
+
+if (LIQUID_INCLUDES)
+ # Already in cache, be silent
+ set (LIQUID_FIND_QUIETLY TRUE)
+endif (LIQUID_INCLUDES)
+
+find_path (LIQUID_INCLUDES liquid/liquid.h)
+
+find_library (LIQUID_LIBRARIES NAMES liquid)
+
+# handle the QUIETLY and REQUIRED arguments and set LIQUID_FOUND to TRUE if
+# all listed variables are TRUE
+include (FindPackageHandleStandardArgs)
+find_package_handle_standard_args (LIQUID DEFAULT_MSG LIQUID_LIBRARIES LIQUID_INCLUDES)
+
+#mark_as_advanced (LIQUID_LIBRARIES LIQUID_INCLUDES)

0 comments on commit 0ae5394

Please sign in to comment.