-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use new Yaml parser for grc * Remove yaml-cpp dependency * yaml: Fix common_blocks types to be loaded by YAML * yaml: Fix clang-build when loading property map * Fix qa_Settings types when building with clang Signed-off-by: Daniel Nicoletti <[email protected]>
- Loading branch information
Showing
13 changed files
with
300 additions
and
403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
add_library(gr-basic INTERFACE) | ||
add_library( | ||
gr-basic | ||
INTERFACE | ||
include/gnuradio-4.0/basic/clock_source.hpp | ||
include/gnuradio-4.0/basic/common_blocks.hpp | ||
include/gnuradio-4.0/basic/ConverterBlocks.hpp | ||
include/gnuradio-4.0/basic/DataSink.hpp | ||
include/gnuradio-4.0/basic/function_generator.hpp | ||
include/gnuradio-4.0/basic/FunctionGenerator.hpp | ||
include/gnuradio-4.0/basic/PythonBlock.hpp | ||
include/gnuradio-4.0/basic/PythonInterpreter.hpp | ||
include/gnuradio-4.0/basic/Selector.hpp | ||
include/gnuradio-4.0/basic/SignalGenerator.hpp | ||
include/gnuradio-4.0/basic/StreamToDataSet.hpp | ||
include/gnuradio-4.0/basic/SyncBlock.hpp | ||
include/gnuradio-4.0/basic/Trigger.hpp) | ||
target_link_libraries(gr-basic INTERFACE gnuradio-core gnuradio-algorithm) | ||
target_include_directories(gr-basic INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/> $<INSTALL_INTERFACE:include/>) | ||
target_include_directories(gr-basic INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/> | ||
$<INSTALL_INTERFACE:include/>) | ||
|
||
if (ENABLE_TESTING) | ||
add_subdirectory(test) | ||
endif () | ||
if(ENABLE_TESTING) | ||
add_subdirectory(test) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,64 @@ | ||
add_library(gnuradio-core INTERFACE) | ||
target_include_directories(gnuradio-core INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/> $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/src> $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include> $<INSTALL_INTERFACE:include/>) | ||
target_link_libraries(gnuradio-core INTERFACE gnuradio-options gnuradio-meta magic_enum pmtv vir yaml-cpp::yaml-cpp) | ||
add_library( | ||
gnuradio-core | ||
INTERFACE | ||
include/gnuradio-4.0/Settings.hpp | ||
include/gnuradio-4.0/annotated.hpp | ||
include/gnuradio-4.0/AtomicBitset.hpp | ||
include/gnuradio-4.0/Block.hpp | ||
include/gnuradio-4.0/BlockModel.hpp | ||
include/gnuradio-4.0/BlockRegistry.hpp | ||
include/gnuradio-4.0/BlockTraits.hpp | ||
include/gnuradio-4.0/Buffer.hpp | ||
include/gnuradio-4.0/BufferSkeleton.hpp | ||
include/gnuradio-4.0/CircularBuffer.hpp | ||
include/gnuradio-4.0/ClaimStrategy.hpp | ||
include/gnuradio-4.0/DataSet.hpp | ||
include/gnuradio-4.0/Graph_yaml_importer.hpp | ||
include/gnuradio-4.0/Graph.hpp | ||
include/gnuradio-4.0/HistoryBuffer.hpp | ||
include/gnuradio-4.0/LifeCycle.hpp | ||
include/gnuradio-4.0/Message.hpp | ||
include/gnuradio-4.0/plugin.hpp | ||
include/gnuradio-4.0/PluginLoader.hpp | ||
include/gnuradio-4.0/Port.hpp | ||
include/gnuradio-4.0/PortTraits.hpp | ||
include/gnuradio-4.0/Profiler.hpp | ||
include/gnuradio-4.0/reader_writer_lock.hpp | ||
include/gnuradio-4.0/Scheduler.hpp | ||
include/gnuradio-4.0/Sequence.hpp | ||
include/gnuradio-4.0/Settings.hpp | ||
include/gnuradio-4.0/Tag.hpp | ||
include/gnuradio-4.0/TriggerMatcher.hpp | ||
include/gnuradio-4.0/WaitStrategy.hpp | ||
include/gnuradio-4.0/YamlPmt.hpp) | ||
target_include_directories( | ||
gnuradio-core | ||
INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/> | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/src> | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include> | ||
$<INSTALL_INTERFACE:include/>) | ||
target_link_libraries( | ||
gnuradio-core | ||
INTERFACE gnuradio-options | ||
gnuradio-meta | ||
magic_enum | ||
pmtv | ||
vir) | ||
|
||
# configure a header file to pass the CMake settings to the source code | ||
configure_file("${PROJECT_SOURCE_DIR}/cmake/config.hpp.in" "${CMAKE_CURRENT_BINARY_DIR}/include/gnuradio-4.0/config.hpp" @ONLY) | ||
# TODO: install configure file... but not really meaningful for header only library, since compile flags are defined by the user... | ||
configure_file("${PROJECT_SOURCE_DIR}/cmake/config.hpp.in" | ||
"${CMAKE_CURRENT_BINARY_DIR}/include/gnuradio-4.0/config.hpp" @ONLY) | ||
# TODO: install configure file... but not really meaningful for header only library, since compile flags are defined by | ||
# the user... | ||
|
||
install( | ||
TARGETS gnuradio-core | ||
EXPORT graphTargets | ||
PUBLIC_HEADER DESTINATION include/ | ||
) | ||
TARGETS gnuradio-core | ||
EXPORT graphTargets | ||
PUBLIC_HEADER DESTINATION include/) | ||
|
||
add_subdirectory(src) | ||
|
||
if (ENABLE_TESTING) | ||
add_subdirectory(test) | ||
add_subdirectory(benchmarks) | ||
endif () | ||
if(ENABLE_TESTING) | ||
add_subdirectory(test) | ||
add_subdirectory(benchmarks) | ||
endif() |
Oops, something went wrong.