1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 04:30:33 +00:00

Add some CMake fixes

This commit is contained in:
Carles Fernandez 2019-02-04 20:00:29 +01:00
parent f38d6961e7
commit 02996bbc8a
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
3 changed files with 14 additions and 12 deletions

View File

@ -42,6 +42,7 @@ target_link_libraries(obs_gr_blocks
Matio::matio Matio::matio
) )
set_property(TARGET obs_gr_blocks APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES set_property(TARGET obs_gr_blocks
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
) )

View File

@ -192,6 +192,13 @@ target_link_libraries(signal_source_adapters
Volk::volk Volk::volk
) )
if(ENABLE_RAW_UDP AND PCAP_FOUND)
target_link_libraries(signal_source_adapters
PRIVATE
Pcap::pcap
)
endif()
if(ENABLE_UHD AND GNURADIO_UHD_LIBRARIES_gnuradio-uhd) if(ENABLE_UHD AND GNURADIO_UHD_LIBRARIES_gnuradio-uhd)
target_link_libraries(signal_source_adapters target_link_libraries(signal_source_adapters
PUBLIC PUBLIC
@ -211,14 +218,7 @@ endif()
if(ENABLE_AD9361 AND LIBIIO_FOUND) if(ENABLE_AD9361 AND LIBIIO_FOUND)
target_link_libraries(signal_source_adapters target_link_libraries(signal_source_adapters
PRIVATE PRIVATE
Osmosdr::osmosdr Iio::iio
)
endif()
if(ENABLE_RAW_UDP AND PCAP_FOUND)
target_link_libraries(signal_source_adapters
PRIVATE
Pcap::pcap
) )
endif() endif()

View File

@ -41,12 +41,13 @@ source_group(Headers FILES ${CORE_LIBS_HEADERS})
target_link_libraries(rx_core_lib target_link_libraries(rx_core_lib
PUBLIC PUBLIC
Boost::boost
supl_library supl_library
gnss_system_parameters gnss_system_parameters
Boost::boost
PRIVATE PRIVATE
Glog::glog
Boost::serialization Boost::serialization
Gflags::gflags
Glog::glog
Pugixml::pugixml Pugixml::pugixml
) )