Skip to content

Commit 113fcec

Browse files
authored
cmake : install whisper.h header (#485)
Including the header file in the install bundle helps projects that ship binaries.
1 parent cfc06bf commit 113fcec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,13 @@ target_compile_definitions(${TARGET} PUBLIC
226226
${WHISPER_EXTRA_FLAGS}
227227
)
228228

229+
set_target_properties(${TARGET} PROPERTIES PUBLIC_HEADER "whisper.h")
230+
229231
install(TARGETS ${TARGET}
230232
LIBRARY DESTINATION lib
231233
ARCHIVE DESTINATION lib/static
232234
RUNTIME DESTINATION bin
235+
PUBLIC_HEADER DESTINATION include
233236
)
234237

235238
#

0 commit comments

Comments
 (0)