File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed
Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ #
2+ # Copyright (C) OpenCyphal Development Team <opencyphal.org>
3+ # Copyright Amazon.com Inc. or its affiliates.
4+ # SPDX-License-Identifier: MIT
5+ #
6+
7+ include (FetchContent)
8+
9+ set (cavl_GIT_REPOSITORY "https://github.com/pavel-kirienko/cavl" )
10+ set (cavl_GIT_TAG "c-2.0.0" )
11+
12+ FetchContent_Declare(
13+ cavl
14+ GIT_REPOSITORY ${cavl_GIT_REPOSITORY}
15+ GIT_TAG ${cavl_GIT_TAG}
16+ )
17+ FetchContent_GetProperties(cavl)
18+ if (NOT cavl_POPULATED)
19+ FetchContent_Populate(cavl)
20+ endif ()
21+
22+
23+ #add_library(cavl2_c INTERFACE)
24+ #target_include_directories(cavl2_c INTERFACE "${cavl_SOURCE_DIR}/c")
25+ add_project_library(
26+ NAME cavl2_c
27+ HEADER_PATH "${cavl_SOURCE_DIR} /c"
28+ )
Original file line number Diff line number Diff line change 33if (NOT TARGET cyphal)
44
55include (ProjectLibrary)
6+ find_package (cavl REQUIRED)
67find_package (libcanard REQUIRED)
78find_package (libudpard REQUIRED)
89find_package (cetl REQUIRED)
Original file line number Diff line number Diff line change @@ -73,5 +73,6 @@ add_project_library(
7373 STATIC
7474 FPIC
7575)
76+ target_link_libraries (canard PRIVATE cavl2_c)
7677
7778endif ()
You can’t perform that action at this time.
0 commit comments