diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2019-12-08 16:05:07 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2020-02-16 09:52:00 +0100 |
commit | 5d59e56ff90258e32a0606121c8dea522c45cb17 (patch) | |
tree | 72314123c0b6cf5a109376ad452f55532590ea4a /lib/freesrp/CMakeLists.txt | |
parent | e9890283ca4470ed3a7c04ffbbe584486ccfe672 (diff) |
build: Update build system to GR 3.8 standards
Part of GNURadio 3.8 migration
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'lib/freesrp/CMakeLists.txt')
-rw-r--r-- | lib/freesrp/CMakeLists.txt | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/freesrp/CMakeLists.txt b/lib/freesrp/CMakeLists.txt index 66c754b..85eb64d 100644 --- a/lib/freesrp/CMakeLists.txt +++ b/lib/freesrp/CMakeLists.txt @@ -21,19 +21,18 @@ # This file included, use CMake directory variables ######################################################################## -include_directories( +target_include_directories(gnuradio-osmosdr PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${LIBFREESRP_INCLUDE_DIRS} ) -set(freesrp_srcs +target_link_libraries(gnuradio-osmosdr + ${LIBFREESRP_LIBRARIES} +) + +list(APPEND gr_osmosdr_srcs ${CMAKE_CURRENT_SOURCE_DIR}/freesrp_common.cc ${CMAKE_CURRENT_SOURCE_DIR}/freesrp_source_c.cc ${CMAKE_CURRENT_SOURCE_DIR}/freesrp_sink_c.cc ) - -######################################################################## -# Append gnuradio-osmosdr library sources -######################################################################## -list(APPEND gr_osmosdr_srcs ${freesrp_srcs}) -list(APPEND gr_osmosdr_libs ${LIBFREESRP_LIBRARIES}) +set(gr_osmosdr_srcs ${gr_osmosdr_srcs} PARENT_SCOPE) |