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
9cebbd2e
Commit
9cebbd2e
authored
2 years ago
by
Markus Frank
Committed by
MarkusFrankATcernch
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix cmake error for I/O module
parent
6d03c713
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
DDDigi/CMakeLists.txt
+9
-8
9 additions, 8 deletions
DDDigi/CMakeLists.txt
with
9 additions
and
8 deletions
DDDigi/CMakeLists.txt
+
9
−
8
View file @
9cebbd2e
...
@@ -50,24 +50,25 @@ dd4hep_add_plugin(DDDigiPlugins
...
@@ -50,24 +50,25 @@ dd4hep_add_plugin(DDDigiPlugins
set
(
DDDigiIO_USES
"DD4hep::DDDigi;DD4hep::DDCore"
)
set
(
DDDigiIO_USES
"DD4hep::DDDigi;DD4hep::DDCore"
)
set
(
DDDigiIO_SOURCES
"io/DigiIO.cpp"
)
set
(
DDDigiIO_SOURCES
"io/DigiIO.cpp"
)
set
(
DDDigiIO_GENERATED
)
set
(
DDDigiIO_GENERATED
)
set
(
DDDigiIO_DEFINITIONS
"DD4HEP_BUILD_DDDIGI_IO=1"
)
set
(
DDDigiIO_DEFINITIONS
)
if
(
DD4HEP_USE_GEANT4
)
if
(
DD4HEP_USE_GEANT4
)
list
(
APPEND DDDigiIO_DEFINITIONS
"DD4HEP_USE_DDG4=1"
)
dd4hep_add_dictionary
(
G__DDDigi_DDG4_IO
dd4hep_add_dictionary
(
G__DDDigi_DDG4_IO
SOURCES ../DDCore/include/ROOT/Warnings.h io/DDG4IO.cpp
SOURCES ../DDCore/include/ROOT/Warnings.h io/DDG4IO.cpp
LINKDEF ../DDCore/include/ROOT/LinkDef.h
LINKDEF ../DDCore/include/ROOT/LinkDef.h
USES DD4hep::DDG4 DD4hep::DDCore
USES DD4hep::DDG4 DD4hep::DDCore
DEFINITIONS
${
DDDigiIO_DEFINITIONS
}
)
)
list
(
APPEND DDDigiIO_DEFINITIONS DD4HEP_USE_DDG4=1
)
list
(
APPEND DDDigiIO_GENERATED G__DDDigi_DDG4_IO.cxx
)
list
(
APPEND DDDigiIO_GENERATED G__DDDigi_DDG4_IO.cxx
)
list
(
APPEND DDDigiIO_SOURCES
"io/DDG4IO.cpp;io/DigiDDG4Input.cpp"
)
list
(
APPEND DDDigiIO_SOURCES
"io/DDG4IO.cpp;io/DigiDDG4Input.cpp"
)
list
(
APPEND DDDigiIO_USES DD4hep::DDG4
)
list
(
APPEND DDDigiIO_USES
"
DD4hep::DDG4
"
)
else
()
else
()
dd4hep_print
(
"|++> Geant4 not used. DDDigi will not be able to read DDG4 output."
)
dd4hep_print
(
"|++> Geant4 not used. DDDigi will not be able to read DDG4 output."
)
endif
()
endif
()
#
#
if
(
DD4HEP_USE_EDM4HEP
)
if
(
DD4HEP_USE_EDM4HEP
)
list
(
APPEND DDDigiIO_SOURCES io/Digi2edm4hep.cpp
)
list
(
APPEND DDDigiIO_SOURCES io/Digi2edm4hep.cpp
)
list
(
APPEND DDDigiIO_DEFINITIONS DD4HEP_USE_EDM4HEP=1
)
list
(
APPEND DDDigiIO_DEFINITIONS
"
DD4HEP_USE_EDM4HEP=1
"
)
list
(
APPEND DDDigiIO_USES
"EDM4HEP::edm4hep;EDM4HEP::edm4hepDict;podio::podio;podio::podioDict;podio::podioRootIO"
)
list
(
APPEND DDDigiIO_USES
"EDM4HEP::edm4hep;EDM4HEP::edm4hepDict;podio::podio;podio::podioDict;podio::podioRootIO"
)
else
()
else
()
dd4hep_print
(
"|++> EDM4HEP not used. DDDigi will not be able to write EDM4HEP output."
)
dd4hep_print
(
"|++> EDM4HEP not used. DDDigi will not be able to write EDM4HEP output."
)
...
@@ -78,8 +79,8 @@ dd4hep_add_plugin(DDDigi_IO
...
@@ -78,8 +79,8 @@ dd4hep_add_plugin(DDDigi_IO
SOURCES
${
DDDigiIO_SOURCES
}
SOURCES
${
DDDigiIO_SOURCES
}
GENERATED
${
DDDigiIO_GENERATED
}
GENERATED
${
DDDigiIO_GENERATED
}
USES
${
DDDigiIO_USES
}
USES
${
DDDigiIO_USES
}
DEFINITIONS
${
DDDigiIO_DEFINITIONS
}
)
)
target_compile_definitions
(
DDDigi_IO PRIVATE
${
DDDigiIO_DEFINITIONS
}
)
set_target_properties
(
DDDigi_IO PROPERTIES VERSION
${
DD4hep_VERSION
}
SOVERSION
${
DD4hep_SOVERSION
}
)
set_target_properties
(
DDDigi_IO PROPERTIES VERSION
${
DD4hep_VERSION
}
SOVERSION
${
DD4hep_SOVERSION
}
)
install
(
TARGETS DDDigi_IO EXPORT DD4hep ARCHIVE DESTINATION lib LIBRARY DESTINATION lib
)
install
(
TARGETS DDDigi_IO EXPORT DD4hep ARCHIVE DESTINATION lib LIBRARY DESTINATION lib
)
#
#
...
...
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