aviks commited on
Commit
610cdde
·
unverified ·
1 Parent(s): a325deb

cmake : install whisper.h header (#485)

Browse files

Including the header file in the install bundle helps projects that ship binaries.

Files changed (1) hide show
  1. CMakeLists.txt +3 -0
CMakeLists.txt CHANGED
@@ -226,10 +226,13 @@ target_compile_definitions(${TARGET} PUBLIC
226
  ${WHISPER_EXTRA_FLAGS}
227
  )
228
 
 
 
229
  install(TARGETS ${TARGET}
230
  LIBRARY DESTINATION lib
231
  ARCHIVE DESTINATION lib/static
232
  RUNTIME DESTINATION bin
 
233
  )
234
 
235
  #
 
226
  ${WHISPER_EXTRA_FLAGS}
227
  )
228
 
229
+ set_target_properties(${TARGET} PROPERTIES PUBLIC_HEADER "whisper.h")
230
+
231
  install(TARGETS ${TARGET}
232
  LIBRARY DESTINATION lib
233
  ARCHIVE DESTINATION lib/static
234
  RUNTIME DESTINATION bin
235
+ PUBLIC_HEADER DESTINATION include
236
  )
237
 
238
  #