Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
b868103a
Commit
b868103a
authored
8 years ago
by
Marko Petric
Browse files
Options
Downloads
Patches
Plain Diff
Add a bootstrap script for new users
parent
bd39cf15
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bootstrap.sh
+31
-0
31 additions, 0 deletions
bootstrap.sh
with
31 additions
and
0 deletions
bootstrap.sh
0 → 100755
+
31
−
0
View file @
b868103a
#!/bin/bash
########################################################################################################################
#
# Assuming you have CVMFS and run SLC6, CERN Centos7 or macOS Sierra you can bootstrap DD4hep by executing this script
#
########################################################################################################################
source
./.dd4hep-ci.d/init_x86_64.sh
STRING
=
$(
env
LC_CTYPE
=
C
tr
-dc
"a-zA-Z0-9-_
\$\?
"
< /dev/urandom |
head
-c
4
)
mkdir
build_
${
STRING
}
cd
build_
${
STRING
}
if
[
"
$(
uname
)
"
==
"Darwin"
]
;
then
cmake
-GNinja
-D
DD4HEP_USE_GEANT4
=
ON
-D
DD4HEP_USE_BOOST
=
ON
-DBoost_NO_BOOST_CMAKE
=
ON
-D
DD4HEP_USE_LCIO
=
ON
-D
BUILD_TESTING
=
ON
-D
Geant4_DIR
=
$G4INSTALL
/lib/Geant4-10.2.2
-D
DD4HEP_USE_CXX11
=
ON
-DCMAKE_BUILD_TYPE
=
Release ..
else
cmake
-GNinja
-D
DD4HEP_USE_GEANT4
=
ON
-D
DD4HEP_USE_BOOST
=
ON
-DBoost_NO_BOOST_CMAKE
=
ON
-D
DD4HEP_USE_LCIO
=
ON
-D
BUILD_TESTING
=
ON
-D
Geant4_DIR
=
$G4INSTALL
/lib64/Geant4-10.2.2
-D
DD4HEP_USE_CXX11
=
ON
-DCMAKE_BUILD_TYPE
=
Release ..
fi
ninja
ninja
install
../bin/thisdd4hep.sh
ctest
--output-on-failure
-j4
cd
../examples/
mkdir
build_
${
STRING
}
cd
build
cmake
-GNinja
..
ninja
ninja
install
ctest
--output-on-failure
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment