Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into module_frn
- Loading branch information
Showing
25 changed files
with
2,319 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,54 @@ | ||
# - Check for the presence of DL | ||
# | ||
# The following variables are set when DL is found: | ||
# HAVE_DL = Set to true, if all components of DL | ||
# have been found. | ||
# DL_INCLUDES = Include path for the header files of DL | ||
# DL_LIBRARIES = Link these to use DL | ||
|
||
## ----------------------------------------------------------------------------- | ||
## Check for the header files | ||
|
||
find_path (DL_INCLUDES dlfcn.h | ||
PATHS /usr/local/include /usr/include ${CMAKE_EXTRA_INCLUDES} | ||
) | ||
|
||
## ----------------------------------------------------------------------------- | ||
## Check for the library | ||
|
||
find_library (DL_LIBRARIES dl | ||
PATHS /usr/local/lib /usr/lib /lib ${CMAKE_EXTRA_LIBRARIES} | ||
) | ||
|
||
## ----------------------------------------------------------------------------- | ||
## Actions taken when all components have been found | ||
|
||
if (DL_INCLUDES AND DL_LIBRARIES) | ||
set (HAVE_DL TRUE) | ||
else (DL_INCLUDES AND DL_LIBRARIES) | ||
if (NOT DL_FIND_QUIETLY) | ||
if (NOT DL_INCLUDES) | ||
message (STATUS "Unable to find DL header files!") | ||
endif (NOT DL_INCLUDES) | ||
if (NOT DL_LIBRARIES) | ||
message (STATUS "Unable to find DL library files!") | ||
endif (NOT DL_LIBRARIES) | ||
endif (NOT DL_FIND_QUIETLY) | ||
endif (DL_INCLUDES AND DL_LIBRARIES) | ||
|
||
if (HAVE_DL) | ||
if (NOT DL_FIND_QUIETLY) | ||
message (STATUS "Found components for DL") | ||
message (STATUS "DL_INCLUDES = ${DL_INCLUDES}") | ||
message (STATUS "DL_LIBRARIES = ${DL_LIBRARIES}") | ||
endif (NOT DL_FIND_QUIETLY) | ||
else (HAVE_DL) | ||
if (DL_FIND_REQUIRED) | ||
message (FATAL_ERROR "Could not find DL!") | ||
endif (DL_FIND_REQUIRED) | ||
endif (HAVE_DL) | ||
|
||
mark_as_advanced ( | ||
HAVE_DL | ||
DL_LIBRARIES | ||
DL_INCLUDES | ||
) | ||
# DL_FOUND = Set to true, if all components of DL | ||
# have been found. | ||
# DL_INCLUDE_DIRS = Include path for the header files of DL | ||
# DL_LIBRARIES = Link these to use DL | ||
|
||
if (DL_LIBRARIES AND DL_INCLUDE_DIRS) | ||
# in cache already | ||
set(DL_FOUND TRUE) | ||
else (DL_LIBRARIES AND DL_INCLUDE_DIRS) | ||
## ------------------------------------------------------------------------- | ||
## Check for the header files | ||
|
||
find_path (DL_INCLUDE_DIR | ||
NAMES dlfcn.h | ||
PATHS /usr/local/include /usr/include ${CMAKE_EXTRA_INCLUDES} | ||
) | ||
|
||
## ------------------------------------------------------------------------- | ||
## Check for the library | ||
|
||
find_library (DL_LIBRARY | ||
NAMES dl | ||
PATHS /usr/local/lib /usr/lib /lib ${CMAKE_EXTRA_LIBRARIES} | ||
) | ||
|
||
## ------------------------------------------------------------------------- | ||
## Actions taken when all components have been found | ||
|
||
if (DL_LIBRARY) | ||
set(DL_FOUND TRUE) | ||
endif (DL_LIBRARY) | ||
|
||
set(DL_INCLUDE_DIRS ${DL_INCLUDE_DIR}) | ||
|
||
if (DL_FOUND) | ||
set(DL_LIBRARIES ${DL_LIBRARIES} ${DL_LIBRARY}) | ||
endif (DL_FOUND) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(DL | ||
DEFAULT_MSG | ||
DL_LIBRARIES | ||
DL_INCLUDE_DIRS | ||
) | ||
|
||
mark_as_advanced ( | ||
HAVE_DL | ||
DL_LIBRARIES | ||
DL_INCLUDES | ||
) | ||
endif (DL_LIBRARIES AND DL_INCLUDE_DIRS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,54 @@ | ||
# - Check for the presence of RT | ||
# | ||
# The following variables are set when RT is found: | ||
# HAVE_RT = Set to true, if all components of RT | ||
# have been found. | ||
# RT_INCLUDES = Include path for the header files of RT | ||
# RT_LIBRARIES = Link these to use RT | ||
|
||
## ----------------------------------------------------------------------------- | ||
## Check for the header files | ||
|
||
find_path (RT_INCLUDES time.h | ||
PATHS /usr/local/include /usr/include ${CMAKE_EXTRA_INCLUDES} | ||
) | ||
|
||
## ----------------------------------------------------------------------------- | ||
## Check for the library | ||
|
||
find_library (RT_LIBRARIES rt | ||
PATHS /usr/local/lib /usr/lib /lib ${CMAKE_EXTRA_LIBRARIES} | ||
) | ||
|
||
## ----------------------------------------------------------------------------- | ||
## Actions taken when all components have been found | ||
|
||
if (RT_INCLUDES AND RT_LIBRARIES) | ||
set (HAVE_RT TRUE) | ||
else (RT_INCLUDES AND RT_LIBRARIES) | ||
if (NOT RT_FIND_QUIETLY) | ||
if (NOT RT_INCLUDES) | ||
message (STATUS "Unable to find RT header files!") | ||
endif (NOT RT_INCLUDES) | ||
if (NOT RT_LIBRARIES) | ||
message (STATUS "Unable to find RT library files!") | ||
endif (NOT RT_LIBRARIES) | ||
endif (NOT RT_FIND_QUIETLY) | ||
endif (RT_INCLUDES AND RT_LIBRARIES) | ||
|
||
if (HAVE_RT) | ||
if (NOT RT_FIND_QUIETLY) | ||
message (STATUS "Found components for RT") | ||
message (STATUS "RT_INCLUDES = ${RT_INCLUDES}") | ||
message (STATUS "RT_LIBRARIES = ${RT_LIBRARIES}") | ||
endif (NOT RT_FIND_QUIETLY) | ||
else (HAVE_RT) | ||
if (RT_FIND_REQUIRED) | ||
message (FATAL_ERROR "Could not find RT!") | ||
endif (RT_FIND_REQUIRED) | ||
endif (HAVE_RT) | ||
|
||
mark_as_advanced ( | ||
HAVE_RT | ||
RT_LIBRARIES | ||
RT_INCLUDES | ||
) | ||
# RT_FOUND = Set to true, if all components of RT | ||
# have been found. | ||
# RT_INCLUDE_DIRS = Include path for the header files of RT | ||
# RT_LIBRARIES = Link these to use RT | ||
|
||
if (RT_LIBRARIES AND RT_INCLUDE_DIRS) | ||
# in cache already | ||
set(RT_FOUND TRUE) | ||
else (RT_LIBRARIES AND RT_INCLUDE_DIRS) | ||
## ------------------------------------------------------------------------- | ||
## Check for the header files | ||
|
||
find_path (RT_INCLUDE_DIR | ||
NAMES time.h | ||
PATHS /usr/local/include /usr/include ${CMAKE_EXTRA_INCLUDES} | ||
) | ||
|
||
## ------------------------------------------------------------------------- | ||
## Check for the library | ||
|
||
find_library (RT_LIBRARY | ||
NAMES rt | ||
PATHS /usr/local/lib /usr/lib /lib ${CMAKE_EXTRA_LIBRARIES} | ||
) | ||
|
||
## ------------------------------------------------------------------------- | ||
## Actions taken when all components have been found | ||
|
||
if (RT_LIBRARY) | ||
set(RT_FOUND TRUE) | ||
endif (RT_LIBRARY) | ||
|
||
set(RT_INCLUDE_DIRS ${RT_INCLUDE_DIR}) | ||
|
||
if (RT_FOUND) | ||
set(RT_LIBRARIES ${RT_LIBRARIES} ${RT_LIBRARY}) | ||
endif (RT_FOUND) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(RT | ||
DEFAULT_MSG | ||
RT_LIBRARIES | ||
RT_INCLUDE_DIRS | ||
) | ||
|
||
mark_as_advanced ( | ||
HAVE_RT | ||
RT_LIBRARIES | ||
RT_INCLUDES | ||
) | ||
endif (RT_LIBRARIES AND RT_INCLUDE_DIRS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# - Try to find rtl-sdr | ||
# Once done this will define | ||
# | ||
# RTLSDR_FOUND - system has rtl-sdr | ||
# RTLSDR_INCLUDE_DIRS - the rtl-sdr include directory | ||
# RTLSDR_LIBRARIES - Link these to use rtl-sdr | ||
# RTLSDR_DEFINITIONS - Compiler switches required for using rtl-sdr | ||
# | ||
|
||
if (RTLSDR_LIBRARIES AND RTLSDR_INCLUDE_DIRS) | ||
# In cache already | ||
set(RTLSDR_FOUND TRUE) | ||
else (RTLSDR_LIBRARIES AND RTLSDR_INCLUDE_DIRS) | ||
|
||
find_path(RTLSDR_INCLUDE_DIR | ||
NAMES rtl-sdr.h | ||
PATHS ${RTLSDR_DIR}/include | ||
) | ||
|
||
find_library(RTLSDR_LIBRARY | ||
NAMES rtlsdr | ||
PATHS ${RTLSDR_DIR}/build/src | ||
) | ||
|
||
set(RTLSDR_INCLUDE_DIRS | ||
${RTLSDR_INCLUDE_DIR} | ||
) | ||
|
||
if (RTLSDR_LIBRARY) | ||
set(RTLSDR_LIBRARIES ${RTLSDR_LIBRARIES} ${RTLSDR_LIBRARY}) | ||
endif (RTLSDR_LIBRARY) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(RtlSdr | ||
DEFAULT_MSG | ||
RTLSDR_LIBRARIES | ||
RTLSDR_INCLUDE_DIRS | ||
) | ||
|
||
# Show the RTLSDR_INCLUDE_DIR and RTLSDR_LIBRARY variables only in | ||
# the advanced view | ||
mark_as_advanced(RTLSDR_INCLUDE_DIR RTLSDR_LIBRARY) | ||
|
||
endif (RTLSDR_LIBRARIES AND RTLSDR_INCLUDE_DIRS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.