mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
Update and clean CMake scripts
This commit is contained in:
parent
f1e4996091
commit
b58b07fe01
@ -61,7 +61,6 @@ target_link_libraries(telemetry_decoder_adapters
|
||||
telemetry_decoder_lib
|
||||
)
|
||||
|
||||
|
||||
set_property(TARGET telemetry_decoder_adapters
|
||||
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2012-2018 (see AUTHORS file for a list of contributors)
|
||||
# Copyright (C) 2012-2019 (see AUTHORS file for a list of contributors)
|
||||
#
|
||||
# This file is part of GNSS-SDR.
|
||||
#
|
||||
@ -87,22 +87,6 @@ set(TRACKING_ADAPTER_HEADERS
|
||||
${OPT_TRACKING_ADAPTERS_HEADERS}
|
||||
)
|
||||
|
||||
include_directories(
|
||||
#${CMAKE_CURRENT_SOURCE_DIR}
|
||||
#${CMAKE_SOURCE_DIR}/src/core/system_parameters
|
||||
#${CMAKE_SOURCE_DIR}/src/core/interfaces
|
||||
#${CMAKE_SOURCE_DIR}/src/core/receiver
|
||||
#${CMAKE_SOURCE_DIR}/src/algorithms/tracking/gnuradio_blocks
|
||||
#${CMAKE_SOURCE_DIR}/src/algorithms/tracking/libs
|
||||
#${CMAKE_SOURCE_DIR}/src/algorithms/libs
|
||||
#${ARMADILLO_INCLUDE_DIRS}
|
||||
#${GLOG_INCLUDE_DIRS}
|
||||
#${GFlags_INCLUDE_DIRS}
|
||||
${GNURADIO_RUNTIME_INCLUDE_DIRS}
|
||||
${VOLK_GNSSSDR_INCLUDE_DIRS}
|
||||
${OPT_TRACKING_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
list(SORT TRACKING_ADAPTER_HEADERS)
|
||||
list(SORT TRACKING_ADAPTER_SOURCES)
|
||||
|
||||
@ -120,6 +104,11 @@ target_link_libraries(tracking_adapters
|
||||
gnss_sdr_flags
|
||||
)
|
||||
|
||||
target_include_directories(tracking_adapters
|
||||
PUBLIC
|
||||
${OPT_TRACKING_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
set_property(TARGET tracking_adapters
|
||||
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
|
@ -78,20 +78,16 @@ set(TRACKING_GR_BLOCKS_HEADERS
|
||||
${OPT_TRACKING_BLOCKS_HEADERS}
|
||||
)
|
||||
|
||||
include_directories(
|
||||
${OPT_TRACKING_INCLUDES}
|
||||
)
|
||||
|
||||
list(SORT TRACKING_GR_BLOCKS_HEADERS)
|
||||
list(SORT TRACKING_GR_BLOCKS_SOURCES)
|
||||
|
||||
source_group(Headers FILES ${TRACKING_GR_BLOCKS_HEADERS})
|
||||
|
||||
add_library(tracking_gr_blocks
|
||||
${TRACKING_GR_BLOCKS_SOURCES}
|
||||
${TRACKING_GR_BLOCKS_HEADERS}
|
||||
)
|
||||
|
||||
source_group(Headers FILES ${TRACKING_GR_BLOCKS_HEADERS})
|
||||
|
||||
target_link_libraries(tracking_gr_blocks
|
||||
PUBLIC
|
||||
Boost::boost
|
||||
@ -105,9 +101,10 @@ target_link_libraries(tracking_gr_blocks
|
||||
${OPT_TRACKING_LIBRARIES}
|
||||
)
|
||||
|
||||
if(ENABLE_GENERIC_ARCH)
|
||||
target_compile_definitions(tracking_gr_blocks PUBLIC -DGENERIC_ARCH=1)
|
||||
endif()
|
||||
target_include_directories(tracking_gr_blocks
|
||||
PUBLIC
|
||||
${OPT_TRACKING_INCLUDES}
|
||||
)
|
||||
|
||||
set_property(TARGET tracking_gr_blocks
|
||||
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2012-2018 (see AUTHORS file for a list of contributors)
|
||||
# Copyright (C) 2012-2019 (see AUTHORS file for a list of contributors)
|
||||
#
|
||||
# This file is part of GNSS-SDR.
|
||||
#
|
||||
@ -66,18 +66,6 @@ if(ENABLE_FPGA)
|
||||
set(TRACKING_LIB_HEADERS ${TRACKING_LIB_HEADERS} fpga_multicorrelator.h dll_pll_conf_fpga.h)
|
||||
endif()
|
||||
|
||||
include_directories(
|
||||
${OPT_TRACKING_INCLUDES}
|
||||
)
|
||||
|
||||
if(ENABLE_GENERIC_ARCH)
|
||||
add_definitions(-DGENERIC_ARCH=1)
|
||||
endif()
|
||||
|
||||
if(SSE3_AVAILABLE)
|
||||
add_definitions(-DHAVE_SSE3=1)
|
||||
endif()
|
||||
|
||||
list(SORT TRACKING_LIB_HEADERS)
|
||||
list(SORT TRACKING_LIB_SOURCES)
|
||||
|
||||
@ -98,6 +86,11 @@ target_link_libraries(tracking_lib
|
||||
Glog::glog
|
||||
)
|
||||
|
||||
target_include_directories(tracking_lib
|
||||
PUBLIC
|
||||
${OPT_TRACKING_INCLUDES}
|
||||
)
|
||||
|
||||
set_property(TARGET tracking_lib
|
||||
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
|
Loading…
Reference in New Issue
Block a user