forked from capablevms/cheri-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
26 lines (23 loc) · 927 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
cmake_minimum_required (VERSION 3.13.0)
project(CHERI_EXAMPLES
VERSION 0.1
DESCRIPTION "Stub examples showing how to exploit capabilities"
LANGUAGES C)
get_filename_component(COMP_NAME ${CMAKE_C_COMPILER} NAME_WE)
add_executable(allocate allocate.c)
add_executable(check_length check_length.c)
add_executable(check_mask check_mask.c)
add_executable(function function.c)
add_executable(bounds bounds.c)
add_executable(general_bounds general_bounds.c)
add_executable(mmap mmap.c)
if( ${COMP_NAME} MATCHES "^mips*" )
add_executable(seal seal.c)
endif()
add_executable(sentry sentry.c)
add_executable(set_bounds set_bounds.c)
add_executable(setjmp setjmp.c)
add_executable(stackscan stackscan.c)
add_executable(xor_pointers xor_pointers.c)
add_executable(bitmap_alloc_good example_allocators/bitmap_allocator/good_client.c
example_allocators/bitmap_allocator/bitmap_alloc.c)