Spaces:
Sleeping
Sleeping
cmake : install whisper.h header (#485)
Browse filesIncluding the header file in the install bundle helps projects that ship binaries.
- 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 |
#
|