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 Feb 11, 2023
1 parent 4090c65 commit e862b2b
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 e862b2b

Please sign in to comment.