Use GNUInstallDirs cmake module.

Fix #166
This commit is contained in:
Remi Collet 2018-04-27 13:41:28 +02:00 committed by John McNamara
parent 14421b6629
commit 62ec2e75f8

View File

@ -277,6 +277,8 @@ endif()
# INSTALL
# -------
INCLUDE(GNUInstallDirs)
if(MSVC)
if(CMAKE_CL_64)
set(MSVC_FOLDER_PREFIX x64)
@ -297,13 +299,13 @@ if(MSVC)
else(MSVC)
install(TARGETS ${PROJECT_NAME}
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
endif(MSVC)
install(FILES include/xlsxwriter.h DESTINATION include)
install(DIRECTORY include/xlsxwriter
DESTINATION include
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING PATTERN "*.h"
)