-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
48 lines (40 loc) · 1000 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
40
41
42
43
44
45
46
47
48
#
# Copyright 2019, Data61, CSIRO (ABN 41 687 119 230)
# Copyright 2022, 2023, Technology Innovation Institute
#
# SPDX-License-Identifier: BSD-2-Clause
#
cmake_minimum_required(VERSION 3.12.0)
include(settings.cmake)
project(tii-camkes-vm C CXX ASM)
find_package(tii-camkes-vm REQUIRED)
tii_camkes_vm_setup()
file(
GLOB
tii_sel4vm_sources
src/*.c
)
if(KernelPlatformRpi4)
file(GLOB plat_deps src/plat/rpi4/*.c)
else()
file(GLOB plat_deps src/plat/${KernelPlatform}/*.c)
endif()
list(APPEND tii_sel4vm_sources ${plat_deps})
add_library(tii_sel4vm OBJECT ${tii_sel4vm_sources})
target_include_directories(
tii_sel4vm
PUBLIC include
)
target_link_libraries(
tii_sel4vm
fdt
sel4_autoconf
sel4sync
sel4vm
sel4vmmplatsupport
virtioarm
)
# Add VM application
add_subdirectory("apps/${AppArch}/${CAMKES_VM_APP}")
# Should be done adding targets, can now generate the root server and the global configuration
GenerateCAmkESRootserver()