Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
maxt@ihep.ac.cn
CEPCSW
Commits
b01e8c69
Unverified
Commit
b01e8c69
authored
2 years ago
by
lintao@ihep.ac.cn
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #228 from mirguest/master
Install the built libraries into InstallArea
parents
eca85067
f084ba25
No related branches found
Branches containing commit
Tags
v0.2.6
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+12
-0
12 additions, 0 deletions
CMakeLists.txt
build-k4.sh
+6
-0
6 additions, 0 deletions
build-k4.sh
build.sh
+6
-0
6 additions, 0 deletions
build.sh
setup.sh
+22
-0
22 additions, 0 deletions
setup.sh
with
46 additions
and
0 deletions
CMakeLists.txt
+
12
−
0
View file @
b01e8c69
...
@@ -52,3 +52,15 @@ install(EXPORT ${PROJECT_NAME}Targets
...
@@ -52,3 +52,15 @@ install(EXPORT ${PROJECT_NAME}Targets
)
)
gaudi_install
(
CMAKE cmake/
${
PROJECT_NAME
}
Config.cmake
)
gaudi_install
(
CMAKE cmake/
${
PROJECT_NAME
}
Config.cmake
)
file
(
WRITE
${
CMAKE_BINARY_DIR
}
/setup.sh.in
"#!/bin/bash
\n
"
"# Generated by cmake
\n
"
"# Following is the extra envvar:
\n
"
"@RUN_SCRIPT_EXTRA_COMMANDS@"
)
configure_file
(
"
${
CMAKE_BINARY_DIR
}
/setup.sh.in"
"
${
CMAKE_BINARY_DIR
}
/setup.sh"
@ONLY
)
install
(
FILES
"
${
CMAKE_BINARY_DIR
}
/setup.sh"
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
)
This diff is collapsed.
Click to expand it.
build-k4.sh
+
6
−
0
View file @
b01e8c69
...
@@ -104,6 +104,10 @@ function run-make() {
...
@@ -104,6 +104,10 @@ function run-make() {
cmake
--build
.
cmake
--build
.
}
}
function
run-install
()
{
cmake
--install
.
}
##############################################################################
##############################################################################
# Parse the command line options
# Parse the command line options
##############################################################################
##############################################################################
...
@@ -120,3 +124,5 @@ check-working-builddir || exit -1
...
@@ -120,3 +124,5 @@ check-working-builddir || exit -1
run-cmake
||
exit
-1
run-cmake
||
exit
-1
run-make
||
exit
-1
run-make
||
exit
-1
run-install
||
exit
-1
This diff is collapsed.
Click to expand it.
build.sh
+
6
−
0
View file @
b01e8c69
...
@@ -86,6 +86,10 @@ function run-make() {
...
@@ -86,6 +86,10 @@ function run-make() {
cmake
--build
.
cmake
--build
.
}
}
function
run-install
()
{
cmake
--install
.
}
##############################################################################
##############################################################################
# Parse the command line options
# Parse the command line options
##############################################################################
##############################################################################
...
@@ -103,3 +107,5 @@ check-working-builddir || exit -1
...
@@ -103,3 +107,5 @@ check-working-builddir || exit -1
run-cmake
||
exit
-1
run-cmake
||
exit
-1
run-make
||
exit
-1
run-make
||
exit
-1
run-install
||
exit
-1
This diff is collapsed.
Click to expand it.
setup.sh
+
22
−
0
View file @
b01e8c69
...
@@ -9,6 +9,8 @@
...
@@ -9,6 +9,8 @@
# Author: Tao Lin <lintao@ihep.ac.cn>
# Author: Tao Lin <lintao@ihep.ac.cn>
##############################################################################
##############################################################################
THISSCRITDIR
=
$(
dirname
$(
readlink
-e
"
${
BASH_SOURCE
[0]
}
"
2>/dev/null
)
2>/dev/null
)
# Darwin readlink doesnt accept -e
function
info:
()
{
function
info:
()
{
echo
"INFO:
$*
"
1>&2
echo
"INFO:
$*
"
1>&2
}
}
...
@@ -41,6 +43,25 @@ function setup-external() {
...
@@ -41,6 +43,25 @@ function setup-external() {
}
}
function
setup-install-area
()
{
local
installarea
=
$THISSCRITDIR
/InstallArea
if
[
!
-d
"
$installarea
"
]
;
then
return
fi
export
PATH
=
$installarea
/bin:
$PATH
export
LD_LIBRARY_PATH
=
$installarea
/lib:
$LD_LIBRARY_PATH
export
PYTHONPATH
=
$installarea
/lib:
$PYTHONPATH
export
PYTHONPATH
=
$installarea
/python:
$PYTHONPATH
export
ROOT_INCLUDE_PATH
=
$installarea
/include:
$ROOT_INCLUDE_PATH
local
extrasetupscript
=
$installarea
/setup.sh
if
[
-f
"
$extrasetupscript
"
]
;
then
source
$extrasetupscript
fi
info:
"Setup CEPCSW:
$installarea
"
}
##############################################################################
##############################################################################
# Parse the command line options
# Parse the command line options
...
@@ -54,3 +75,4 @@ fi
...
@@ -54,3 +75,4 @@ fi
export
CEPCSW_LCG_VERSION
export
CEPCSW_LCG_VERSION
setup-external
setup-external
setup-install-area
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