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:
Eugene Kliuchnikov 2016-10-12 18:40:37 +03:00 committed by GitHub
commit 85817beba8

View File

@ -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)
install(
TARGETS ${BROTLI_LIBRARIES_CORE}
LIBRARY DESTINATION "${CMAKE_INSTALL_BINDIR}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_BINDIR}"
)
else()
install(TARGETS ${BROTLI_LIBRARIES_CORE} LIBRARY DESTINATION lib)
endif()
install(TARGETS ${BROTLI_LIBRARIES_CORE} LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
install(DIRECTORY ${BROTLI_INCLUDE_DIRS}/brotli DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
endif()
endif()