mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-26 20:05:17 +00:00
Update to modern CMake usage
This commit is contained in:
@@ -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.
|
||||
#
|
||||
@@ -29,22 +29,26 @@ set(RESAMPLER_GR_BLOCKS_HEADERS
|
||||
direct_resampler_conditioner_cb.h
|
||||
)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${GLOG_INCLUDE_DIRS}
|
||||
${GFlags_INCLUDE_DIRS}
|
||||
${GNURADIO_RUNTIME_INCLUDE_DIRS}
|
||||
${VOLK_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
list(SORT RESAMPLER_GR_BLOCKS_HEADERS)
|
||||
list(SORT RESAMPLER_GR_BLOCKS_SOURCES)
|
||||
|
||||
source_group(Headers FILES ${RESAMPLER_GR_BLOCKS_HEADERS})
|
||||
|
||||
add_library(resampler_gr_blocks
|
||||
${RESAMPLER_GR_BLOCKS_SOURCES}
|
||||
${RESAMPLER_GR_BLOCKS_HEADERS}
|
||||
)
|
||||
|
||||
source_group(Headers FILES ${RESAMPLER_GR_BLOCKS_HEADERS})
|
||||
target_link_libraries(resampler_gr_blocks
|
||||
PUBLIC
|
||||
Gnuradio::runtime
|
||||
Volk::volk
|
||||
PRIVATE
|
||||
Gflags::gflags
|
||||
Glog::glog
|
||||
)
|
||||
|
||||
add_dependencies(resampler_gr_blocks glog-${glog_RELEASE})
|
||||
set_property(TARGET resampler_gr_blocks
|
||||
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user