Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Geant4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
LHCb
Geant4
Commits
d34374b7
Commit
d34374b7
authored
10 years ago
by
Marco Clemencic
Browse files
Options
Downloads
Patches
Plain Diff
v95r2p7g1
parent
e1e4a4d1
No related branches found
Branches containing commit
Tags
v95r2p7g1
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+34
-0
34 additions, 0 deletions
CMakeLists.txt
cmt/project.cmt
+1
-1
1 addition, 1 deletion
cmt/project.cmt
toolchain.cmake
+11
-0
11 additions, 0 deletions
toolchain.cmake
with
46 additions
and
1 deletion
CMakeLists.txt
0 → 100644
+
34
−
0
View file @
d34374b7
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8.5
)
set
(
Geant4_version 4.9.5.p02
)
if
(
DEFINED ENV{G4_NATIVE_VERSION}
)
# Override the version of Geant4 from the variable
set
(
Geant4_version $ENV{G4_NATIVE_VERSION}
)
if
(
NOT Geant4_version MATCHES
"^4
\\
."
)
# G4_NATIVE_VERSION might not contain the initial '4.' that we need
# see https://its.cern.ch/jira/browse/LHCBGAUSS-43
set
(
Geant4_version 4.
${
Geant4_version
}
)
endif
()
endif
()
find_package
(
GaudiProject
)
gaudi_project
(
Geant4 v95r2p7g1
)
file
(
MAKE_DIRECTORY
${
CMAKE_INSTALL_PREFIX
}
)
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink ../include
${
CMAKE_INSTALL_PREFIX
}
/include
)
# FIXME: hack for compatibility with CMT build
file
(
WRITE
${
CMAKE_BINARY_DIR
}
/dummy.cpp
""
)
link_directories
(
${
CMAKE_INSTALL_PREFIX
}
/lib
)
set
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
-Wl,--no-as-needed"
)
macro
(
back_comp_lib name
)
add_library
(
${
name
}
SHARED
${
CMAKE_BINARY_DIR
}
/dummy.cpp
)
add_dependencies
(
${
name
}
Geant4
)
target_link_libraries
(
${
name
}
${
ARGN
}
)
install
(
TARGETS
${
name
}
DESTINATION lib
)
endmacro
()
back_comp_lib
(
G4processeshad G4processes
)
back_comp_lib
(
G4externals G4zlib G4gl2ps
)
This diff is collapsed.
Click to expand it.
cmt/project.cmt
+
1
−
1
View file @
d34374b7
project GEANT4
use GAUDI GAUDI_v2
3r6
use GAUDI GAUDI_v2
4r2
build_strategy with_installarea
setup_strategy root
This diff is collapsed.
Click to expand it.
toolchain.cmake
0 → 100644
+
11
−
0
View file @
d34374b7
# Special wrapper to load the declared version of the heptools toolchain.
set
(
heptools_version 66
)
find_file
(
use_heptools_module UseHEPTools.cmake
HINTS
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake
)
# this check is needed because the toolchain seem to be called a second time
# without the proper cache
if
(
use_heptools_module
)
include
(
${
use_heptools_module
}
)
use_heptools
(
${
heptools_version
}
)
endif
()
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