File: CMakeLists.txt

package info (click to toggle)
ggml 0.9.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 20,368 kB
  • sloc: cpp: 131,204; ansic: 46,699; lisp: 11,788; python: 1,591; objc: 1,395; sh: 1,042; makefile: 72
file content (34 lines) | stat: -rw-r--r-- 871 bytes parent folder | download | duplicates (2)
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
if (GGML_ALL_WARNINGS)
  if (NOT MSVC)
      set(cxx_flags
          # TODO(marella): Add other warnings.
          -Wpedantic
          -Wunused-variable
          -Wno-unused-function
          -Wno-multichar
      )
      add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:${cxx_flags}>")
  endif()
endif()

add_library(common STATIC common.cpp)
target_include_directories(common PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

add_library(common-ggml STATIC common-ggml.cpp)
target_link_libraries(common-ggml PRIVATE ggml)
target_include_directories(common-ggml PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

add_subdirectory(yolo)

if (NOT GGML_BACKEND_DL)
    add_subdirectory(gpt-2)
    add_subdirectory(gpt-j)
    add_subdirectory(mnist)
    add_subdirectory(sam)
    add_subdirectory(simple)
    add_subdirectory(magika)
endif()

if (GGML_METAL)
    add_subdirectory(perf-metal)
endif()