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
if(NOT BROTLI_BUNDLED_MODE)
install (TARGETS bro RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
install(
TARGETS bro
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
)
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}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
)
install(DIRECTORY ${BROTLI_INCLUDE_DIRS}/brotli DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
endif()
install(
TARGETS ${BROTLI_LIBRARIES_CORE}
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
)
install(
DIRECTORY ${BROTLI_INCLUDE_DIRS}/brotli
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
)
endif()
# Tests