-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
26 lines (19 loc) · 836 Bytes
/
CMakeLists.txt
File metadata and controls
26 lines (19 loc) · 836 Bytes
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
# Example executables for sam3.cpp
# Quantization tool (no GUI dependency)
add_executable(sam3_quantize quantize.cpp)
target_link_libraries(sam3_quantize PRIVATE ggml)
add_executable(sam3_benchmark benchmark.cpp)
target_link_libraries(sam3_benchmark PRIVATE sam3)
add_executable(sam3_profile_edgetam profile_edgetam.cpp)
target_link_libraries(sam3_profile_edgetam PRIVATE sam3)
# SDL2 + ImGui are optional — build only if SDL2 is found.
find_package(SDL2 QUIET)
if(SDL2_FOUND)
add_subdirectory(third-party)
add_executable(sam3_image main_image.cpp)
target_link_libraries(sam3_image PRIVATE sam3 imgui-sdl2 SDL2::SDL2)
add_executable(sam3_video main_video.cpp)
target_link_libraries(sam3_video PRIVATE sam3 imgui-sdl2 SDL2::SDL2)
else()
message(STATUS "SDL2 not found — skipping GUI examples")
endif()