Skip to content

Commit

Permalink
migrate --flags-only
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarren committed Feb 17, 2022
1 parent e5f2129 commit 3cf150d
Show file tree
Hide file tree
Showing 10 changed files with 592 additions and 240 deletions.
24 changes: 12 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
# buildtool [-I /install/path] -bt[i] -jN
# ======================================================================

cmake_minimum_required(VERSION 3.19 FATAL_ERROR)
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
# cmake_policy(VERSION 3.19) ### MIGRATE-ACTION-COMPATIBILITY (migrate-3.05.03) - Uncomment to preseve compatibility with older CMake versions

find_package(cetmodules REQUIRED)
project(larcorealg VERSION 09.05.00 LANGUAGES CXX)

# cetbuildtools contains our cmake modules
find_package(cetbuildtools REQUIRED)

include(CetCMakeEnv)
cet_cmake_env()
Expand All @@ -22,18 +23,18 @@ cet_set_compiler_flags(DIAGS CAUTIOUS
EXTRA_FLAGS -pedantic -Wno-unused-local-typedefs
)

cet_report_compiler_flags()
cet_report_compiler_flags() ### MIGRATE-ACTION-RECOMMENDED (migrate-3.05.03) - add args: REPORT_THRESHOLD VERBOSE

find_package(cetlib_except REQUIRED PUBLIC)
find_package(cetlib REQUIRED PUBLIC)
find_package(messagefacility REQUIRED PUBLIC)
find_package(canvas REQUIRED PUBLIC)
find_package(cetlib_except REQUIRED EXPORT)
find_package(cetlib REQUIRED EXPORT)
find_package(messagefacility REQUIRED EXPORT)
find_package(canvas REQUIRED EXPORT)
find_package(canvas_root_io REQUIRED)
find_package(CLHEP COMPONENTS Geometry Vector REQUIRED PUBLIC)
find_package(CLHEP COMPONENTS Geometry Vector REQUIRED EXPORT)
find_package(Boost REQUIRED)
find_package(ROOT COMPONENTS Core Physics Geom GenVector REQUIRED PUBLIC)
find_package(ROOT COMPONENTS Core Physics Geom GenVector REQUIRED EXPORT)

find_ups_product( larcoreobj )
find_package( larcoreobj REQUIRED )

# macros for artdaq_dictionary and simple_plugin
include(ArtDictionary)
Expand All @@ -47,7 +48,6 @@ add_subdirectory(larcorealg)
add_subdirectory(test)

# ups - table and config files
add_subdirectory(ups)

# packaging utility
include(UseCPack)
cet_cmake_config()
2 changes: 1 addition & 1 deletion larcorealg/CoreUtils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cet_make(LIBRARIES
cetlib::cetlib
cetlib_except::cetlib_except
)
) ### MIGRATE-ACTION-RECOMMENDED (migrate-3.05.03) - deprecated: use cet_make_library(), build_dictonary(), cet_plugin() with explicit source lists and plugin base types

install_headers()
install_source()
2 changes: 1 addition & 1 deletion larcorealg/GeoAlgo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cet_make(NO_DICTIONARY
LIBRARIES
ROOT::Core
ROOT::Physics
)
) ### MIGRATE-ACTION-RECOMMENDED (migrate-3.05.03) - deprecated: use cet_make_library(), build_dictonary(), cet_plugin() with explicit source lists and plugin base types

art_dictionary(DICTIONARY_LIBRARIES larcorealg_GeoAlgo)

Expand Down
2 changes: 1 addition & 1 deletion larcorealg/Geometry/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cet_make(
ROOT::Geom
ROOT::GenVector
CLHEP::Geometry
)
) ### MIGRATE-ACTION-RECOMMENDED (migrate-3.05.03) - deprecated: use cet_make_library(), build_dictonary(), cet_plugin() with explicit source lists and plugin base types

install_headers(SUBDIRS "details")
install_fhicl(SUBDIRS "details")
Expand Down
2 changes: 1 addition & 1 deletion larcorealg/TestUtils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cet_make(LIBRARIES canvas::canvas cetlib_except)
cet_make(LIBRARIES canvas::canvas cetlib_except) ### MIGRATE-ACTION-RECOMMENDED (migrate-3.05.03) - deprecated: use cet_make_library(), build_dictonary(), cet_plugin() with explicit source lists and plugin base types

install_headers()
install_source()
6 changes: 0 additions & 6 deletions ups/CMakeLists.txt

This file was deleted.

12 changes: 0 additions & 12 deletions ups/product-config.cmake.in

This file was deleted.

Loading

0 comments on commit 3cf150d

Please sign in to comment.