mirror of
https://github.com/triqs/dft_tools
synced 2024-12-23 04:43:42 +01:00
29 lines
1.2 KiB
CMake
29 lines
1.2 KiB
CMake
add_subdirectory(cmake)
|
|
|
|
if(NOT CMAKE_INSTALL_PREFIX STREQUAL TRIQS_ROOT AND NOT IS_SUBPROJECT)
|
|
|
|
if(PythonSupport)
|
|
set(EXPORT_PYTHON_PATH "export PYTHONPATH=${CMAKE_INSTALL_PREFIX}/${CPP2PY_PYTHON_LIB_DEST_ROOT}:$PYTHONPATH")
|
|
set(MODFILE_PYTHON_PATH "prepend-path PYTHONPATH $root/${CPP2PY_PYTHON_LIB_DEST_ROOT}")
|
|
endif()
|
|
|
|
configure_file(app4triqs.modulefile.in app4triqs.modulefile @ONLY)
|
|
configure_file(app4triqsvars.sh.in app4triqsvars.sh @ONLY)
|
|
|
|
install(
|
|
FILES
|
|
${CMAKE_CURRENT_BINARY_DIR}/app4triqs.modulefile
|
|
${CMAKE_CURRENT_BINARY_DIR}/app4triqsvars.sh
|
|
DESTINATION share
|
|
)
|
|
|
|
message(STATUS "***************************************************************")
|
|
message(STATUS "* Custom install Location. Use: ")
|
|
message(STATUS "* ")
|
|
message(STATUS "* source ${CMAKE_INSTALL_PREFIX}/share/app4triqsvars.sh ")
|
|
message(STATUS "* ")
|
|
message(STATUS "* to set up the environment variables ")
|
|
message(STATUS "***************************************************************")
|
|
|
|
endif()
|