-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
71 lines (65 loc) · 1.96 KB
/
CMakeLists.txt
File metadata and controls
71 lines (65 loc) · 1.96 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
##
# Test apps from the perspective of a consuming project.
##
cmake_minimum_required(VERSION 3.28)
project(Halide_apps)
enable_testing()
if (WIN32)
option(ENABLE_APPS_HANNK "Build apps/hannk" OFF)
else ()
option(ENABLE_APPS_HANNK "Build apps/hannk" ON)
endif ()
function(add_app app_name)
string(TOUPPER "ENABLE_APPS_${app_name}" opt)
option(${opt} "Build apps/${app_name}" ON)
if (${opt})
add_subdirectory(${app_name})
endif ()
endfunction()
# TODO: most of the apps need to be smartened to be crosscompilable under wasm.
find_package(Halide REQUIRED)
message(STATUS "Found Halide: ${Halide_DIR} (found version \"${Halide_VERSION}\")")
message(STATUS "Halide_TARGET: ${Halide_TARGET}")
if (Halide_TARGET MATCHES "wasm")
message(WARNING "Skipping apps when building under wasm")
return()
endif()
# keep-sorted start case=no ignore_prefixes=#
# add_app(auto_viz) # TODO(#5374): missing CMake build
add_app(bgu)
add_app(bilateral_grid)
add_app(blur)
add_app(c_backend)
add_app(camera_pipe)
add_app(compositing)
add_app(conv_layer)
add_app(cuda_mat_mul)
add_app(depthwise_separable_conv)
add_app(fft)
add_app(hannk)
add_app(harris)
# add_app(HelloAndroid) # TODO(#5374): missing CMake build
# add_app(HelloAndroidCamera2) # TODO(#5374): missing CMake build
add_app(HelloBaremetal)
# add_app(HelloiOS) # don't build HelloiOS here because it isn't universal.
# add_app(HelloPyTorch) # TODO(#5374): missing CMake build
add_app(hexagon_benchmarks)
# add_app(hexagon_dma) # TODO(#5374): missing CMake build
add_app(hist)
add_app(iir_blur)
add_app(interpolate)
add_app(lens_blur)
add_app(linear_algebra)
add_app(linear_blur)
add_app(local_laplacian)
add_app(max_filter)
add_app(nl_means)
# add_app(nn_ops) # TODO(#5374): missing CMake build
add_app(onnx)
add_app(resize)
# add_app(resnet_50) # TODO(#5374): missing CMake build
# add_app(simd_op_check) # TODO(#5374): missing CMake build
add_app(stencil_chain)
add_app(unsharp)
add_app(wavelet)
# keep-sorted end