2018-03-22 18:11:39 +01:00
|
|
|
#%Module1.0
|
|
|
|
#
|
2020-05-28 17:09:35 +02:00
|
|
|
# To be installed as ${MODULEPATH}/@PROJECT_NAME@/@PROJECT_VERSION@
|
2018-03-22 18:11:39 +01:00
|
|
|
|
2020-05-28 17:09:35 +02:00
|
|
|
set name @PROJECT_NAME@
|
2019-10-28 23:23:15 +01:00
|
|
|
set version @PROJECT_VERSION@
|
2018-03-22 18:11:39 +01:00
|
|
|
set root @CMAKE_INSTALL_PREFIX@
|
2019-07-16 17:54:32 +02:00
|
|
|
set git_hash @PROJECT_GIT_HASH@
|
2018-03-22 18:11:39 +01:00
|
|
|
|
2020-05-28 17:09:35 +02:00
|
|
|
set url "https://github.com/TRIQS/@PROJECT_NAME@"
|
2018-03-22 18:11:39 +01:00
|
|
|
set description "An example application using cpp2py and triqs."
|
|
|
|
|
|
|
|
module-whatis "$description"
|
|
|
|
|
|
|
|
proc ModulesHelp { } {
|
|
|
|
global description url version git_hash
|
|
|
|
puts stderr "Description: $description"
|
|
|
|
puts stderr "URL: $url"
|
|
|
|
puts stderr "Version: $version"
|
|
|
|
puts stderr "Git hash: $git_hash"
|
|
|
|
}
|
|
|
|
|
2019-04-16 17:17:12 +02:00
|
|
|
# You may need to edit the next line if the triqs module
|
|
|
|
# is installed under a different name in your setup.
|
|
|
|
prereq triqs/@TRIQS_VERSION@
|
2018-03-22 18:11:39 +01:00
|
|
|
|
2020-05-28 17:09:35 +02:00
|
|
|
# Only one version of @PROJECT_NAME@ can be loaded at a time
|
2018-03-22 18:11:39 +01:00
|
|
|
conflict $name
|
|
|
|
|
2020-05-28 17:09:35 +02:00
|
|
|
setenv @PROJECT_NAME@_ROOT $root
|
|
|
|
setenv @PROJECT_NAME@_VERSION $version
|
|
|
|
setenv @PROJECT_NAME@_GIT_HASH $git_hash
|
2018-03-22 18:11:39 +01:00
|
|
|
|
|
|
|
prepend-path PATH $root/bin
|
2018-10-11 23:17:12 +02:00
|
|
|
prepend-path CPLUS_INCLUDE_PATH $root/include
|
2018-03-22 18:11:39 +01:00
|
|
|
prepend-path LIBRARY_PATH $root/lib
|
|
|
|
prepend-path LD_LIBRARY_PATH $root/lib
|
2020-05-06 20:28:32 +02:00
|
|
|
prepend-path CMAKE_PREFIX_PATH $root
|
2020-05-07 16:41:30 +02:00
|
|
|
@MODFILE_PYTHON_PATH@
|