Skip to content

Commit

Permalink
Move the find_packages to the top level CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 25, 2023
1 parent ef46243 commit 8494ee9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
10 changes: 4 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.15)

project(k4FWCore)

find_package(ROOT COMPONENTS RIO Tree)

#---------------------------------------------------------------
# Load macros and functions for Gaudi-based projects
find_package(Gaudi)
#---------------------------------------------------------------
find_package(ROOT COMPONENTS RIO Tree REQUIRED)
find_package(Gaudi REQUIRED)
find_package(podio REQUIRED)
find_package(EDM4HEP REQUIRED)

include(GNUInstallDirs)
include(CTest)
Expand Down
9 changes: 0 additions & 9 deletions test/k4FWCoreTest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ See the License for the specific language governing permissions and
limitations under the License.
]]

################################################################################
# Package: k4FWCoreTest
################################################################################

find_package(EDM4HEP)

file(GLOB k4fwcoretest_plugin_sources src/components/*.cpp)

gaudi_add_module(k4FWCoreTestPlugins
Expand All @@ -44,7 +38,6 @@ function(add_test_with_env testname)
set(TEST_ARGUMENTS "")

foreach(arg ${ARGN})
message(STATUS "arg: ${arg}")
if(arg STREQUAL "PROPERTIES")
set(TEST_PROPERTIES_FOUND TRUE)
else()
Expand Down Expand Up @@ -116,8 +109,6 @@ add_test_with_env(Testk4runHelpOnly options/TestArgs.py --help PROPERTIES PASS_R

add_test_with_env(ExampleFunctionalProducer options/runExampleFunctionalProducer.py)
add_test_with_env(ExampleFunctionalConsumer options/runExampleFunctionalConsumer.py PROPERTIES DEPENDS ExampleFunctionalProducer)
# A dependency on the ExampleFunctionalConsumer is added to make sure they don't
# run at the same time
add_test_with_env(ExampleFunctionalTransformer options/runExampleFunctionalTransformer.py PROPERTIES DEPENDS ExampleFunctionalProducer)
add_test_with_env(ExampleFunctionalProducerMultiple options/runExampleFunctionalProducerMultiple.py)
add_test_with_env(ExampleFunctionalConsumerMultiple options/runExampleFunctionalConsumerMultiple.py PROPERTIES DEPENDS ExampleFunctionalProducerMultiple)
Expand Down

0 comments on commit 8494ee9

Please sign in to comment.