forked from iovisor/ubpf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
40 lines (32 loc) · 891 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright (c) 2022-present, IO Visor Project
# SPDX-License-Identifier: Apache-2.0
#
# All rights reserved.
#
# This source code is licensed in accordance with the terms specified in
# the LICENSE file found in the root directory of this source tree.
#
project("ubpf")
cmake_minimum_required(VERSION 3.16)
if (UBPF_INSTALL_GIT_HOOKS)
# Install Git pre-commit hook
file(COPY scripts/pre-commit scripts/commit-msg
DESTINATION "${PROJECT_SOURCE_DIR}/.git/hooks")
endif()
include("cmake/platform.cmake")
include("cmake/settings.cmake")
include("cmake/options.cmake")
include("cmake/version.cmake")
if(UBPF_ENABLE_TESTS)
include("CTest")
endif()
add_subdirectory("vm")
if(UBPF_ENABLE_TESTS)
add_subdirectory("ubpf_plugin")
if (NOT UBPF_SKIP_EXTERNAL)
add_subdirectory("external")
endif()
endif()
if(UBPF_ENABLE_PACKAGE)
include("cmake/packaging.cmake")
endif()