Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ev10 test client #79

Draft
wants to merge 2 commits into
base: ev10
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@
[submodule "firmware/net/components/numero_uri/lib"]
path = firmware/net/components/numero_uri/lib
url = git@github.com:Quicr/numero-uri.git
[submodule "cmd/moctar/dependencies/libquicr"]
path = cmd/moctar/dependencies/libquicr
url = https://github.com/quicr/libquicr
[submodule "cmd/moctar/dependencies/mlspp"]
path = cmd/moctar/dependencies/mlspp
url = https://github.com/cisco/mlspp
4 changes: 4 additions & 0 deletions cmd/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.vscode

build
.tmp.dprobes.h
17 changes: 17 additions & 0 deletions cmd/moctar/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
project(moctar)

add_executable(moctar moctar.cpp)

add_subdirectory(dependencies)
target_link_libraries(${PROJECT_NAME} LINK_PUBLIC quicr mlspp)

target_compile_options(${PROJECT_NAME}
PRIVATE
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>: -Wpedantic -Wextra -Wall>
$<$<CXX_COMPILER_ID:MSVC>: >)

set_target_properties(${PROJECT_NAME}
PROPERTIES
CXX_STANDARD 20
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS OFF)
8 changes: 8 additions & 0 deletions cmd/moctar/dependencies/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
add_subdirectory(libquicr)

set(OPENSSL_FOUND ON)
set(OPENSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libquicr/dependencies/transport/dependencies/boringssl)
set(OPENSSL_INCLUDE_DIR ${OPENSSL_ROOT_DIR}/include)
set(OPENSSL_CRYPTO_LIBRARY ${CMAKE_BINARY_DIR}/dependencies/libquicr/dependencies/transport/dependencies/boringssl/crypto/libcrypto.a)
set(OPENSSL_SSL_LIBRARY ${CMAKE_BINARY_DIR}/dependencies/libquicr/dependencies/transport/dependencies/boringssl/ssl)
add_subdirectory(mlspp)
1 change: 1 addition & 0 deletions cmd/moctar/dependencies/libquicr
Submodule libquicr added at ff97af
1 change: 1 addition & 0 deletions cmd/moctar/dependencies/mlspp
Submodule mlspp added at f35e5d
Loading