Commit 07aaaa85 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

CMake install: make full use of CMAKE_INSTALL_<dir> variables

parent 6189a6f5
Pipeline #38785 passed with stage
in 21 seconds
......@@ -75,7 +75,7 @@ include(CTest)
configure_file("libcerf.pc.in" "libcerf.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libcerf.pc"
DESTINATION "${CMAKE_INSTALL_PREFIX}/${LIBDIR}/pkgconfig/")
DESTINATION "${CMAKE_INSTALL_PREFIX}/pkgconfig/")
add_subdirectory(lib)
add_subdirectory(test)
......
......@@ -31,13 +31,13 @@ endif()
install(
TARGETS ${lib}
LIBRARY DESTINATION ${LIBDIR}
RUNTIME DESTINATION ${LIBDIR}
ARCHIVE DESTINATION ${LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT Libraries)
install(
FILES ${inc_files}
DESTINATION include
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
COMPONENT Headers)
set(CPACK_PACKAGE_VENDOR "Forschungszentrum Jülich GmbH")
......
......@@ -15,11 +15,11 @@ function(one_page pname section srcname)
)
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/${pname}.${section}
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man${section}"
DESTINATION "${CMAKE_INSTALL_MANDIR}/man${section}"
)
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/${pname}.html
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/libcerf/html"
DESTINATION "${CMAKE_INSTALL_DOCDIR}/html"
)
set(TARGETS_MAN "${TARGETS_MAN};${pname}.${section}" PARENT_SCOPE)
set(TARGETS_HTM "${TARGETS_HTM};${pname}.html" PARENT_SCOPE)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment