Use install directories provided by GNUInstallDirs.

This commit is contained in:
Frédéric Wang 2016-10-12 16:11:51 +02:00 committed by Frédéric Wang
parent 82536d2bae
commit c41962f0ae

View File

@ -181,10 +181,10 @@ if(NOT BROTLI_BUNDLED_MODE)
install (TARGETS bro RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
if(WIN32)
install(TARGETS ${BROTLI_LIBRARIES_CORE} RUNTIME DESTINATION bin)
install(TARGETS ${BROTLI_LIBRARIES_CORE} RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
else()
install(TARGETS ${BROTLI_LIBRARIES_CORE} LIBRARY DESTINATION lib)
install(DIRECTORY ${BROTLI_INCLUDE_DIRS}/brotli DESTINATION include)
install(TARGETS ${BROTLI_LIBRARIES_CORE} LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
install(DIRECTORY ${BROTLI_INCLUDE_DIRS}/brotli DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
endif()
endif()