Skip to content

Commit

Permalink
cmake : install whisper.h header (ggerganov#485)
Browse files Browse the repository at this point in the history
Including the header file in the install bundle helps projects that ship binaries.
  • Loading branch information
aviks authored and rock3125 committed Feb 21, 2023
1 parent 16c539e commit 232ce4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

#
Expand Down

0 comments on commit 232ce4a

Please sign in to comment.