Check for FFTW3 before building as it is required for hackrf_sweep
This commit is contained in:
@ -23,10 +23,13 @@
|
||||
|
||||
set(INSTALL_DEFAULT_BINDIR "bin" CACHE STRING "Appended to CMAKE_INSTALL_PREFIX")
|
||||
|
||||
INCLUDE(FindPkgConfig)
|
||||
pkg_check_modules(FFTW REQUIRED fftw3f)
|
||||
|
||||
if(MSVC)
|
||||
add_library(libgetopt_static STATIC
|
||||
add_library(libgetopt_static STATIC
|
||||
../getopt/getopt.c
|
||||
)
|
||||
)
|
||||
endif()
|
||||
|
||||
SET(TOOLS
|
||||
@ -40,9 +43,6 @@ SET(TOOLS
|
||||
hackrf_sweep
|
||||
)
|
||||
|
||||
add_executable(hackrf_sweep hackrf_sweep.c)
|
||||
install(TARGETS hackrf_sweep RUNTIME DESTINATION ${INSTALL_DEFAULT_BINDIR})
|
||||
|
||||
if(NOT libhackrf_SOURCE_DIR)
|
||||
include_directories(${LIBHACKRF_INCLUDE_DIR})
|
||||
LIST(APPEND TOOLS_LINK_LIBS ${LIBHACKRF_LIBRARIES})
|
||||
|
Reference in New Issue
Block a user