kopia lustrzana https://github.com/mobilinkd/m17-cxx-demod
Add the blaze linear algebra library as a git submodule.
rodzic
5ff118718c
commit
8fa5f688f7
|
@ -0,0 +1,3 @@
|
|||
[submodule "blaze"]
|
||||
path = blaze
|
||||
url = https://bitbucket.org/blaze-lib/blaze
|
|
@ -18,6 +18,27 @@ if(NOT CMAKE_BUILD_TYPE)
|
|||
message(STATUS "Build type not specified: defaulting to release.")
|
||||
endif()
|
||||
|
||||
# Ensure submodules are checked out
|
||||
message(STATUS "# Checking submodules")
|
||||
find_package(Git REQUIRED)
|
||||
|
||||
if(EXISTS "${PROJECT_SOURCE_DIR}/.git")
|
||||
execute_process(
|
||||
COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive
|
||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
||||
RESULT_VARIABLE GIT_SUBMODULE_RESULT
|
||||
OUTPUT_VARIABLE GIT_SUBMODULE_OUTPUT
|
||||
ERROR_VARIABLE GIT_SUBMODULE_ERROR
|
||||
)
|
||||
|
||||
if(NOT ${GIT_SUBMODULE_RESULT} EQUAL 0)
|
||||
message(FATAL_ERROR "Failed to update submodules: ${OUTPUT_VARIABLE}")
|
||||
endif()
|
||||
include_directories (
|
||||
blaze
|
||||
)
|
||||
endif()
|
||||
|
||||
# Check for dependencies
|
||||
message(STATUS "# Checking dependencies")
|
||||
|
||||
|
@ -30,26 +51,6 @@ find_package(codec2 REQUIRED)
|
|||
set(Boost_USE_STATIC_LIBS FALSE)
|
||||
find_package(Boost COMPONENTS program_options REQUIRED)
|
||||
|
||||
if (BLAZE_INCLUDE_DIR)
|
||||
|
||||
# in cache already
|
||||
set(BLAZE_FOUND TRUE)
|
||||
message(STATUS "Have blaze")
|
||||
else (BLAZE_INCLUDE_DIR)
|
||||
|
||||
find_path(BLAZE_INCLUDE_DIR NAMES blaze/Blaze.h
|
||||
PATHS
|
||||
${INCLUDE_INSTALL_DIR}
|
||||
)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(BLAZE DEFAULT_MSG BLAZE_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(BLAZE_INCLUDE_DIR)
|
||||
message(STATUS "Found blaze")
|
||||
|
||||
endif(BLAZE_INCLUDE_DIR)
|
||||
|
||||
# Add subdirectories
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(apps)
|
||||
|
|
|
@ -20,9 +20,10 @@ stream from STDIN and writes out an M17 4-FSK baseband stream at 48k SPS,
|
|||
|
||||
This code requires the codec2-devel, boost-devel and gtest-devel packages be installed.
|
||||
|
||||
This code also now requires the Blaze C++ math library.
|
||||
This code also now requires the Blaze C++ math library. This is installed as a git
|
||||
submodule. To build you will need git installed and internet access.
|
||||
|
||||
It also requires a modern C++17 compiler (GCC 8 minimum).
|
||||
It also requires a modern C++20 compiler.
|
||||
|
||||
### Build Steps
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 7a9086596e7783afb3cac0394bbc55d4c8b45a80
|
Ładowanie…
Reference in New Issue