mirror of
https://github.com/google/brotli.git
synced 2024-12-28 18:51:08 +00:00
Merge pull request #437 from fred-wang/cmake-include
Also install the brotli headers when building the shared libraries. #326
This commit is contained in:
commit
85817beba8
@ -180,12 +180,15 @@ if(NOT BROTLI_BUNDLED_MODE)
|
||||
|
||||
install (TARGETS bro RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
if(WIN32)
|
||||
install(TARGETS ${BROTLI_LIBRARIES_CORE} RUNTIME DESTINATION bin)
|
||||
else()
|
||||
install(TARGETS ${BROTLI_LIBRARIES_CORE} LIBRARY DESTINATION lib)
|
||||
endif()
|
||||
if(WIN32)
|
||||
install(
|
||||
TARGETS ${BROTLI_LIBRARIES_CORE}
|
||||
LIBRARY DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||
)
|
||||
else()
|
||||
install(TARGETS ${BROTLI_LIBRARIES_CORE} LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
||||
install(DIRECTORY ${BROTLI_INCLUDE_DIRS}/brotli DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user