From: Avik Sengupta Date: Sat, 11 Feb 2023 07:13:32 +0000 (+0000) Subject: cmake : install whisper.h header (#485) X-Git-Tag: upstream/1.7.4~1575 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=113fcec51394df872636f24eb24912c51715c918;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp cmake : install whisper.h header (#485) Including the header file in the install bundle helps projects that ship binaries. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d41252fd..cdc2992c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,10 +226,13 @@ target_compile_definitions(${TARGET} PUBLIC ${WHISPER_EXTRA_FLAGS} ) +set_target_properties(${TARGET} PROPERTIES PUBLIC_HEADER "whisper.h") + install(TARGETS ${TARGET} LIBRARY DESTINATION lib ARCHIVE DESTINATION lib/static RUNTIME DESTINATION bin + PUBLIC_HEADER DESTINATION include ) #