Skip to content

Commit 9e0bcb5

Browse files
tmadlenerjmcarcell
andauthored
Explicitly mention source files instead of GLOB (#323)
Co-authored-by: jmcarcell <[email protected]>
1 parent 1364cd8 commit 9e0bcb5

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed

k4FWCore/CMakeLists.txt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,22 @@ target_include_directories(k4FWCore PUBLIC
2828
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
2929
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
3030

31-
file(GLOB k4fwcore_plugin_sources components/*.cpp)
3231
gaudi_add_module(k4FWCorePlugins
33-
SOURCES ${k4fwcore_plugin_sources}
32+
SOURCES
33+
components/CollectionMerger.cpp
34+
components/EventCounter.cpp
35+
components/EventHeaderCreator.cpp
36+
components/FCCDataSvc.cpp
37+
components/IOSvc.cpp
38+
components/MetadataSvc.cpp
39+
components/PodioInput.cpp
40+
components/PodioOutput.cpp
41+
components/Reader.cpp
42+
components/UniqueIDGenSvc.cpp
43+
components/Writer.cpp
44+
components/k4DataSvc.cpp
3445
LINK Gaudi::GaudiKernel k4FWCore k4FWCore::k4Interface ROOT::Core ROOT::RIO ROOT::Tree EDM4HEP::edm4hep)
46+
3547
target_include_directories(k4FWCorePlugins PUBLIC
3648
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
3749
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)

test/k4FWCoreTest/CMakeLists.txt

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,38 @@ See the License for the specific language governing permissions and
1717
limitations under the License.
1818
]]
1919

20-
file(GLOB k4fwcoretest_plugin_sources src/components/*.cpp)
20+
set(k4fwcoretest_plugin_sources
21+
src/components/ExampleEventHeaderConsumer.cpp
22+
src/components/ExampleFunctionalConsumer.cpp
23+
src/components/ExampleFunctionalConsumerMultiple.cpp
24+
src/components/ExampleFunctionalConsumerRuntimeCollections.cpp
25+
src/components/ExampleFunctionalConsumerRuntimeCollectionsMultiple.cpp
26+
src/components/ExampleFunctionalFilter.cpp
27+
src/components/ExampleFunctionalMetadataConsumer.cpp
28+
src/components/ExampleFunctionalMetadataProducer.cpp
29+
src/components/ExampleFunctionalProducer.cpp
30+
src/components/ExampleFunctionalProducerMultiple.cpp
31+
src/components/ExampleFunctionalProducerRuntimeCollections.cpp
32+
src/components/ExampleFunctionalTransformer.cpp
33+
src/components/ExampleFunctionalTransformerHist.cpp
34+
src/components/ExampleFunctionalTransformerMultiple.cpp
35+
src/components/ExampleFunctionalTransformerRuntimeCollections.cpp
36+
src/components/ExampleFunctionalTransformerRuntimeCollectionsMultiple.cpp
37+
src/components/ExampleFunctionalTransformerRuntimeEmpty.cpp
38+
src/components/ExampleGaudiFunctionalProducer.cpp
39+
src/components/ExampleParticleIDConsumer.cpp
40+
src/components/ExampleParticleIDProducer.cpp
41+
src/components/ExampleRNGSeedingAlg.cpp
42+
src/components/k4FWCoreTest_AlgorithmWithTFile.cpp
43+
src/components/k4FWCoreTest_cellID_reader.cpp
44+
src/components/k4FWCoreTest_cellID_writer.cpp
45+
src/components/k4FWCoreTest_CheckExampleEventData.cpp
46+
src/components/k4FWCoreTest_CreateExampleEventData.cpp
47+
src/components/k4FWCoreTest_CreateMarlinWrapperCollection.cpp
48+
src/components/k4FWCoreTest_HelloWorldAlg.cpp
49+
src/components/TestUniqueIDGenSvc.cpp
50+
src/components/TypeMisMatchDemo.cpp
51+
)
2152

2253
gaudi_add_module(k4FWCoreTestPlugins
2354
SOURCES ${k4fwcoretest_plugin_sources}

0 commit comments

Comments
 (0)