mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 12:10:34 +00:00
Improve CMake scripts, add workaround for CentOS 7 and remove unused include
This commit is contained in:
parent
adcbacafb5
commit
0fbbdbb163
@ -26,11 +26,12 @@ endif()
|
||||
target_link_libraries(signal_generator_adapters
|
||||
PUBLIC
|
||||
Gnuradio::blocks
|
||||
Gnuradio::pmt
|
||||
signal_generator_gr_blocks
|
||||
PRIVATE
|
||||
Gflags::gflags
|
||||
Glog::glog
|
||||
algorithms_libs
|
||||
core_system_parameters
|
||||
)
|
||||
|
||||
target_include_directories(signal_generator_adapters
|
||||
|
@ -26,15 +26,10 @@ endif()
|
||||
target_link_libraries(signal_generator_gr_blocks
|
||||
PUBLIC
|
||||
Gnuradio::runtime
|
||||
core_system_parameters
|
||||
PRIVATE
|
||||
Volkgnsssdr::volkgnsssdr
|
||||
algorithms_libs
|
||||
)
|
||||
|
||||
target_include_directories(signal_generator_gr_blocks
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/src/algorithms/libs
|
||||
core_system_parameters
|
||||
Volkgnsssdr::volkgnsssdr
|
||||
)
|
||||
|
||||
if(GNURADIO_USES_STD_POINTERS)
|
||||
@ -43,6 +38,16 @@ if(GNURADIO_USES_STD_POINTERS)
|
||||
)
|
||||
endif()
|
||||
|
||||
# Workaround for CentOS 7
|
||||
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND
|
||||
(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "5.0"))
|
||||
target_compile_options(signal_generator_gr_blocks
|
||||
PRIVATE
|
||||
$<$<CONFIG:Release>:-O0>
|
||||
$<$<CONFIG:RelWithDebInfo>:-O0>
|
||||
)
|
||||
endif()
|
||||
|
||||
if(ENABLE_CLANG_TIDY)
|
||||
if(CLANG_TIDY_EXE)
|
||||
set_target_properties(signal_generator_gr_blocks
|
||||
|
@ -20,7 +20,6 @@
|
||||
#ifndef GNSS_SDR_SIGNAL_GENERATOR_C_H
|
||||
#define GNSS_SDR_SIGNAL_GENERATOR_C_H
|
||||
|
||||
#include "gnss_signal.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <random>
|
||||
#include <string>
|
||||
|
Loading…
Reference in New Issue
Block a user