1#
2# Copyright 2017, Data61
3# Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4# ABN 41 687 119 230.
5#
6# This software may be distributed and modified according to the terms of
7# the BSD 2-Clause license. Note that NO WARRANTY is provided.
8# See "LICENSE_BSD2.txt" for details.
9#
10# @TAG(DATA61_BSD)
11#
12
13cmake_minimum_required(VERSION 3.7.2)
14
15project(libsel4ync C)
16
17file(GLOB deps src/*.c)
18
19list(SORT deps)
20
21add_library(sel4sync STATIC EXCLUDE_FROM_ALL ${deps})
22
23target_include_directories(sel4sync PUBLIC include)
24
25target_link_libraries(
26    sel4sync
27    PUBLIC
28        muslc
29        sel4
30        sel4vka
31        platsupport
32        utils
33        sel4_autoconf
34)
35
36if(KernelDebugBuild)
37    target_link_libraries(sel4sync PUBLIC sel4debug)
38endif()
39