From: Sam Spilsbury Date: Tue, 4 Jul 2023 17:34:28 +0000 (+0300) Subject: cmake : install the header file to ggml/ggml.h (#333) X-Git-Tag: upstream/0.0.1642~1352 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f35e5962eee761e7ee240e7eb05567dc87177eba;p=pkg%2Fggml%2Fsources%2Fggml cmake : install the header file to ggml/ggml.h (#333) Fixes #332 --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8b155dd7..ade423c9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -260,7 +260,12 @@ if (GGML_CUDA_SOURCES) target_link_libraries(ggml PUBLIC stdc++) endif() +set (GGML_PUBLIC_HEADERS ${CMAKE_SOURCE_DIR}/include/ggml/ggml.h) +set_target_properties(${TARGET} PROPERTIES + PUBLIC_HEADER "${GGML_PUBLIC_HEADERS}") + install(TARGETS ${TARGET} LIBRARY DESTINATION lib ARCHIVE DESTINATION lib/static + PUBLIC_HEADER DESTINATION include/ggml )