forked from shahor02/NA6PRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sh.in
More file actions
22 lines (17 loc) · 814 Bytes
/
Copy pathinit.sh.in
File metadata and controls
22 lines (17 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Set the root directory for the project
export @PROJECT_NAME@_ROOT=@CMAKE_INSTALL_PREFIX@
# Add include directory to ROOT_INCLUDE_PATH if not already present
if [[ ":$ROOT_INCLUDE_PATH:" != *":@CMAKE_INSTALL_PREFIX@/include:"* ]]; then
export ROOT_INCLUDE_PATH="${ROOT_INCLUDE_PATH:+$ROOT_INCLUDE_PATH:}@CMAKE_INSTALL_PREFIX@/include"
fi
# Add bin directory to PATH if not already present
if [[ ":$PATH:" != *":@CMAKE_INSTALL_PREFIX@/bin:"* ]]; then
export PATH="${PATH:+$PATH:}@CMAKE_INSTALL_PREFIX@/bin"
fi
# Add lib directory to LD_LIBRARY_PATH if not already present
if [[ ":$LD_LIBRARY_PATH:" != *":@CMAKE_INSTALL_PREFIX@/lib:"* ]]; then
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}@CMAKE_INSTALL_PREFIX@/lib"
fi
# set geant4 env.vars
eval $(geant4-config --sh)