aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd/CMakeLists.txt
blob: 666a5d7324db8f6b7aadea8d963a74118c5598ac (plain)
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
add_library("kstd" STATIC)
add_library("libs::kstd" ALIAS "kstd")

target_sources("kstd" PRIVATE
    "src/bits/os.cpp"
    "src/cstdlib.cpp"
    "src/cstring.cpp"
    "src/mutex.cpp"
)

target_sources("kstd" PUBLIC
    FILE_SET HEADERS
    BASE_DIRS "include"
    FILES
    "include/kstd/bits/os.hpp"
    "include/kstd/bits/shared_ptr.hpp"
    "include/kstd/bits/unique_ptr.hpp"

    "include/kstd/asm_ptr"
    "include/kstd/memory"
    "include/kstd/mutex"
    "include/kstd/stack"
    "include/kstd/vector"
)

target_include_directories("kstd" PUBLIC
    "include"
)

target_link_options("kstd" INTERFACE
    "-Wl,--undefined=abort"
    "-Wl,--undefined=strlen"
)