]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
cmake : install whisper.h header (#485)
authorAvik Sengupta <redacted>
Sat, 11 Feb 2023 07:13:32 +0000 (07:13 +0000)
committerGitHub <redacted>
Sat, 11 Feb 2023 07:13:32 +0000 (09:13 +0200)
Including the header file in the install bundle helps projects that ship binaries.

CMakeLists.txt

index d41252fd707dee30d0fbb71e28c3a1b843a26957..cdc2992c7f2b8e6fdc6547b8f6707387413fcf82 100644 (file)
@@ -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
     )
 
 #