From c6d67ee67d04a9d2fc2d25ce4280424288180518 Mon Sep 17 00:00:00 2001 From: Avik Sengupta Date: Wed, 8 Feb 2023 22:23:58 +0000 Subject: [PATCH] Install the header file when using cmake Including the header file in the install bundle helps projects that ship binaries. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d41252f..cdc2992 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ) #