1 --- a/cmake/utilities.cmake 1970-01-01 01:00:01.000000000 +0100
2 +++ b/cmake/utilities.cmake 2023-03-09 19:28:16.556251981 +0100
7 - RUNTIME DESTINATION bin
8 - LIBRARY DESTINATION lib
9 - ARCHIVE DESTINATION lib
10 + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
11 + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
12 + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
19 COMPONENT ${component}
20 - RUNTIME DESTINATION bin
21 - LIBRARY DESTINATION lib
22 - ARCHIVE DESTINATION lib
23 + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
24 + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
25 + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
29 --- a/src/lib/geogram/CMakeLists.txt 1970-01-01 01:00:01.000000000 +0100
30 +++ b/src/lib/geogram/CMakeLists.txt 2023-03-09 20:29:12.346780432 +0100
32 # Install include files for the standard devkit
35 - DESTINATION include/${VORPALINE_INCLUDE_SUBPATH}/geogram
36 + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${VORPALINE_INCLUDE_SUBPATH}/geogram
38 FILES_MATCHING PATTERN *.h
41 # Install include files for the full devkit
44 - DESTINATION include/${VORPALINE_INCLUDE_SUBPATH}/geogram
45 + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${VORPALINE_INCLUDE_SUBPATH}/geogram
47 FILES_MATCHING PATTERN *.h
48 # Exclude all files related to licensing
52 FILES "${PROJECT_BINARY_DIR}/geogram${VORPALINE_VERSION_MAJOR}.pc"
53 - DESTINATION lib${LIB_SUFFIX}/pkgconfig
54 + DESTINATION ${GEOGRAM_INSTALL_PKGCONFIG_DIR}
58 --- a/CMakeLists.txt 1970-01-01 01:00:01.000000000 +0100
59 +++ b/CMakeLists.txt 2023-03-09 20:40:20.075218356 +0100
64 -install(FILES cmake/FindGeogram.cmake DESTINATION lib/cmake/modules COMPONENT devkit)
65 +install(FILES cmake/FindGeogram.cmake DESTINATION ${GEOGRAM_INSTALL_CMAKE_DIR} COMPONENT devkit)
69 --- a/doc/CMakeLists.txt 1970-01-01 01:00:01.000000000 +0100
70 +++ b/doc/CMakeLists.txt 2023-03-09 21:12:04.386327003 +0100
73 # Install documentation
74 if(GEOGRAM_WITH_VORPALINE)
75 - install(FILES README.txt DESTINATION doc COMPONENT runtime)
76 - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/LICENSE.txt DESTINATION doc COMPONENT runtime OPTIONAL)
77 + install(FILES README.txt DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT runtime)
78 + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/LICENSE.txt DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT runtime OPTIONAL)
81 - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION.txt DESTINATION doc/geogram COMPONENT runtime OPTIONAL)
83 - install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/devkit/html DESTINATION doc/devkit COMPONENT doc-devkit OPTIONAL)
84 - install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/devkit-full/html DESTINATION doc/devkit COMPONENT doc-devkit-full OPTIONAL)
85 - install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/devkit-internal/html DESTINATION doc/devkit COMPONENT doc-devkit-internal OPTIONAL)
86 + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION.txt DESTINATION ${CMAKE_INSTALL_DOCDIR}/geogram COMPONENT runtime OPTIONAL)
88 + install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/devkit/html DESTINATION ${CMAKE_INSTALL_DOCDIR}/devkit COMPONENT doc-devkit OPTIONAL)
89 + install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/devkit-full/html DESTINATION ${CMAKE_INSTALL_DOCDIR}/devkit COMPONENT doc-devkit-full OPTIONAL)
90 + install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/devkit-internal/html DESTINATION ${CMAKE_INSTALL_DOCDIR}/devkit COMPONENT doc-devkit-internal OPTIONAL)