Install static libraries as well (#601)

This commit is contained in:
Eugene Kliuchnikov 2017-09-20 10:04:06 +02:00 committed by GitHub
parent 37fb83ec0d
commit b6a017492e

View File

@ -213,6 +213,13 @@ if(NOT BROTLI_BUNDLED_MODE)
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
) )
install(
TARGETS ${BROTLI_LIBRARIES_CORE_STATIC}
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
)
install( install(
DIRECTORY ${BROTLI_INCLUDE_DIRS}/brotli DIRECTORY ${BROTLI_INCLUDE_DIRS}/brotli
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
@ -260,7 +267,7 @@ if(NOT BROTLI_DISABLE_TESTS)
-DBROTLI_CLI=$<TARGET_FILE:brotli> -DBROTLI_CLI=$<TARGET_FILE:brotli>
-DQUALITY=${quality} -DQUALITY=${quality}
-DINPUT=${INPUT_FILE} -DINPUT=${INPUT_FILE}
-DOUTPUT=${OUTPUT_FILE}.${quality} -DOUTPUT=${OUTPUT_FILE}.${quality}
-P ${CMAKE_CURRENT_SOURCE_DIR}/tests/run-roundtrip-test.cmake) -P ${CMAKE_CURRENT_SOURCE_DIR}/tests/run-roundtrip-test.cmake)
endforeach() endforeach()
endforeach() endforeach()