Skip to content

Commit

Permalink
cmake : install the header file to ggml/ggml.h (#333)
Browse files Browse the repository at this point in the history
Fixes #332
  • Loading branch information
smspillaz committed Jul 4, 2023
1 parent ba85474 commit f35e596
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit f35e596

Please sign in to comment.