Skip to content
Snippets Groups Projects
Commit 3b2ae2af authored by Markus Blatt's avatar Markus Blatt
Browse files

Use GNUInstallDir to specify installation directory.

[[Imported from SVN: r6988]]
parent 4d3a82d9
No related branches found
No related tags found
No related merge requests found
......@@ -10,5 +10,5 @@ install(PROGRAMS
sourcescheck
top-rules
webstuff
DESTINATION share/dune-common/am
DESTINATION ${CMAKE_INSTALL_DATADIR}/am
)
......@@ -5,4 +5,4 @@ install(PROGRAMS
dunecontrol
mpi-config
dune-autogen
DESTINATION bin)
DESTINATION ${CMAKE_INSTALL_BINDIR})
file(GLOB modules *.cmake)
install(FILES ${modules} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/cmake/modules)
install(FILES ${modules} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cmake/modules)
file(GLOB modules *.cmake)
install(FILES ${modules} ${CMAKE_CURRENT_SOURCE_DIR}/BuildTests.cmake.in DESTINATION ${CMAKE_INSTALL_PREFIX}/share/cmake/scripts)
install(FILES ${modules} ${CMAKE_CURRENT_SOURCE_DIR}/BuildTests.cmake.in
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cmake/scripts)
add_subdirectory("doxygen")
add_subdirectory("buildsystem")
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/example.opts
DESTINATION share/doc/dune-common
DESTINATION ${CMAKE_INSTALL_DOCDIR}
)
if(LATEX_USABLE)
ADD_LATEX_DOCUMENT(buildsystem.tex FATHER_TARGET doc DEFAULT_PDF INPUTS ../Makefile.am ../../configure.ac ../example.opts)
create_doc_install(${CMAKE_CURRENT_BINARY_DIR}/buildsystem.pdf share/doc/dune-common/buildsystem)
create_doc_install(${CMAKE_CURRENT_BINARY_DIR}/buildsystem.pdf ${CMAKE_INSTALL_DOCDIR}/buildsystem)
endif(LATEX_USABLE)
#add_custom_target(install_buildsystem)
#install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" --build \"${CMAKE_BINARY_DIR}\" --target buildsystem_install )")
#install(FILES ${CMAKE_CURRENT_BINARY_DIR}/buildsystem.pdf
# DESTINATION share/doc/dune-common/buildsystem)
# quickhack for creating the Doxyfile.in and Doxyfile
add_doxygen_target()
install(FILES Doxystyle DESTINATION share/dune-common/doc/doxygen)
install(FILES Doxystyle DESTINATION ${CMAKE_INSTALL_DOCDIR}/doxygen)
......@@ -84,8 +84,8 @@ install(FILES
typetraits.hh
unused.hh
version.hh
DESTINATION include/dune/common)
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/common)
# Install some test headers, because they get used by tests in other modules
# We do this here as test will not be considered for make install
install(FILES test/iteratortest.hh DESTINATION include/dune/common/test)
install(FILES test/iteratortest.hh DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/common/test)
......@@ -10,5 +10,5 @@ install(FILES
plocalindex.hh
remoteindices.hh
selection.hh
DESTINATION include/dune/common/parallel)
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/common/parallel)
install(FILES dunemodules.lib DESTINATION lib)
install(FILES dunemodules.lib DESTINATION ${CMAKE_INSTALL_LIBDIR})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment