Unify artifact installation (#544)

This commit is contained in:
Eugene Kliuchnikov 2017-05-24 17:19:34 +02:00 committed by GitHub
parent 0a84e9bf86
commit 2c001010aa

View File

@ -187,22 +187,22 @@ target_link_libraries(bro ${BROTLI_LIBRARIES})
# Installation # Installation
if(NOT BROTLI_BUNDLED_MODE) if(NOT BROTLI_BUNDLED_MODE)
install (TARGETS bro RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") install(
TARGETS bro
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
)
if(WIN32) install(
install( TARGETS ${BROTLI_LIBRARIES_CORE}
TARGETS ${BROTLI_LIBRARIES_CORE} ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_BINDIR}" RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
) )
else()
install(TARGETS ${BROTLI_LIBRARIES_CORE}
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
)
install(DIRECTORY ${BROTLI_INCLUDE_DIRS}/brotli DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
endif()
install(
DIRECTORY ${BROTLI_INCLUDE_DIRS}/brotli
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
)
endif() endif()
# Tests # Tests