Also install the libraries and headers when building static libraries.

This commit is contained in:
Frédéric Wang 2016-10-12 14:53:02 +02:00 committed by Frédéric Wang
parent cd8153a1ed
commit 82536d2bae

View File

@ -180,13 +180,11 @@ 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)
install(DIRECTORY ${BROTLI_INCLUDE_DIRS}/brotli DESTINATION include)
endif()
if(WIN32)
install(TARGETS ${BROTLI_LIBRARIES_CORE} RUNTIME DESTINATION bin)
else()
install(TARGETS ${BROTLI_LIBRARIES_CORE} LIBRARY DESTINATION lib)
install(DIRECTORY ${BROTLI_INCLUDE_DIRS}/brotli DESTINATION include)
endif()
endif()