-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
39 lines (29 loc) · 988 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
add_custom_target(recoil_examples)
set(RECOIL_EXAMPLES_COMMON_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/common)
function(recoil_example_add_executable NAME)
cmake_parse_arguments(_ "" "" "" ${ARGN})
add_executable(${NAME} ${__UNPARSED_ARGUMENTS})
add_dependencies(recoil_examples ${NAME})
target_include_directories(
${NAME}
PRIVATE
${RECOIL_EXAMPLES_COMMON_SOURCE_DIR}
)
endfunction()
foreach(EXAMPLE
01_combine_encoded_splits
02_detect_cuda_occupancy
10_encode_textfile
11_encode_textfile_symbolsplit
15_decode_textfile_split
16_decode_textfile_split_cuda
17_decode_textfile_symbolsplit
18_decode_textfile_symbolsplit_cuda
20_encode_lic
21_encode_lic_symbolsplit
25_decode_lic_split
26_decode_lic_split_cuda
27_decode_lic_symbolsplit
28_decode_lic_symbolsplit_cuda)
add_subdirectory(${EXAMPLE})
endforeach()