Skip to content

Commit

Permalink
Link to liquid-dsp
Browse files Browse the repository at this point in the history
  • Loading branch information
miek committed Jun 5, 2016
1 parent 4504736 commit 0ae5394
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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")
Expand Down
22 changes: 22 additions & 0 deletions cmake/Modules/FindLiquid.cmake
Original file line number Diff line number Diff line change
@@ -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.