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
8cc27957
Commit
8cc27957
authored
4 years ago
by
Ben Couturier
Committed by
Marko Petric
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Modified DDEve to only build WebDisplay when ROOT7 Eve is available
parent
0f45edae
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
DDEve/CMakeLists.txt
+9
-3
9 additions, 3 deletions
DDEve/CMakeLists.txt
DDEve/root7/WebDisplay.cpp
+0
-0
0 additions, 0 deletions
DDEve/root7/WebDisplay.cpp
UtilityApps/CMakeLists.txt
+6
-3
6 additions, 3 deletions
UtilityApps/CMakeLists.txt
with
15 additions
and
6 deletions
DDEve/CMakeLists.txt
+
9
−
3
View file @
8cc27957
...
...
@@ -17,7 +17,7 @@ target_include_directories(DDEve_Interface
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/include>
$<INSTALL_INTERFACE:include>
)
target_link_libraries
(
DDEve_Interface INTERFACE ROOT::Core ROOT::Rint ROOT::Eve ROOT::Gui ROOT::Graf3d ROOT::RGL ROOT::EG
ROOT::ROOTEve
)
target_link_libraries
(
DDEve_Interface INTERFACE ROOT::Core ROOT::Rint ROOT::Eve ROOT::Gui ROOT::Graf3d ROOT::RGL ROOT::EG
)
dd4hep_add_dictionary
(
G__DDEve
SOURCES ../DDCore/include/ROOT/Warnings.h include/DDEve/*.h
...
...
@@ -29,14 +29,20 @@ dd4hep_add_dictionary(G__DDEve
USES DD4hep::DDCore
)
if
(
TARGET ROOT::ROOTEve
)
dd4hep_print
(
"Building the web display using ROOT7"
)
SET
(
DDEVE_ROOT7_SOURCES root7/WebDisplay.cpp
)
SET
(
DDEVE_ROOT7_LINK ROOT::ROOTEve
)
endif
()
if
(
TARGET LCIO::LCIO
)
SET
(
DDEVE_LCIO_SOURCES lcio/LCIOEventHandler.cpp
)
SET
(
DDEVE_LCIO_LINK LCIO::LCIO
)
endif
()
dd4hep_add_plugin
(
DDEvePlugins SOURCES src/*.cpp
${
DDEVE_LCIO_SOURCES
}
dd4hep_add_plugin
(
DDEvePlugins SOURCES src/*.cpp
${
DDEVE_LCIO_SOURCES
}
${
DDEVE_ROOT7_SOURCES
}
GENERATED G__DDEve.cxx
USES DD4hep::DDCore DD4hep::DDEve_Interface
${
DDEVE_LCIO_LINK
}
USES DD4hep::DDCore DD4hep::DDEve_Interface
${
DDEVE_LCIO_LINK
}
${
DDEVE_ROOT7_LINK
}
)
if
(
DD4HEP_USE_GEANT4
)
...
...
This diff is collapsed.
Click to expand it.
DDEve/
src
/WebDisplay.cpp
→
DDEve/
root7
/WebDisplay.cpp
+
0
−
0
View file @
8cc27957
File moved
This diff is collapsed.
Click to expand it.
UtilityApps/CMakeLists.txt
+
6
−
3
View file @
8cc27957
...
...
@@ -13,9 +13,6 @@ SET_PROPERTY(DIRECTORY . PROPERTY PACKAGE_NAME UtilityApps)
add_executable
(
geoDisplay src/display.cpp
)
target_link_libraries
(
geoDisplay DD4hep::DDCore
)
#-----------------------------------------------------------------------------------
add_executable
(
geoWebDisplay src/webdisplay.cpp
)
target_link_libraries
(
geoWebDisplay DD4hep::DDCore
)
#-----------------------------------------------------------------------------------
add_executable
(
geoConverter src/converter.cpp
)
target_link_libraries
(
geoConverter DD4hep::DDCore
)
#-----------------------------------------------------------------------------------
...
...
@@ -44,6 +41,12 @@ if(TARGET Geant4::Interface)
LIST
(
APPEND OPTIONAL_EXECUTABLES dumpdetector
)
endif
()
# the web display tool depends on the ROOT7 version of DDEve
if
(
TARGET ROOT::ROOTEve
)
add_executable
(
geoWebDisplay src/webdisplay.cpp
)
target_link_libraries
(
geoWebDisplay DD4hep::DDCore
)
endif
()
# #-----------------------------------------------------------------------------------
if
(
BUILD_TESTING
)
if
(
DD4HEP_USE_LCIO
)
...
...
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