1111# make install
1212# make package (builds distribution tarfile)
1313# ======================================================================
14-
15-
1614cmake_minimum_required (VERSION 3.19 FATAL_ERROR )
1715
18- project (sbnobj VERSION 09.14.12 LANGUAGES CXX )
16+ find_package (cetmodules 3.20.00 REQUIRED )
17+ project (sbnobj VERSION 09.15.00 LANGUAGES CXX )
1918
2019message (STATUS
2120 "\n -- ============================================================================="
2221 "\n -- === *** Start of configuration of ${PROJECT_NAME } ***"
2322 "\n -- ===" )
2423
25- # cetbuildtools contains our cmake modules
26- find_package (cetbuildtools REQUIRED )
27-
28- list (APPEND CMAKE_MODULE_PATH $ENV{CANVAS_ROOT_IO_DIR} /Modules)
2924
3025include (CetCMakeEnv )
3126cet_cmake_env ()
@@ -37,18 +32,20 @@ cet_set_compiler_flags(DIAGS CAUTIOUS
3732 EXTRA_CXX_FLAGS -Wno-unused-local-typedefs
3833)
3934
40- cet_report_compiler_flags ()
35+ cet_report_compiler_flags (REPORT_THRESHOLD VERBOSE )
4136
4237# these are minimum required versions, not the actual product versions
43- find_ups_product ( canvas )
44- find_ups_product ( larcoreobj )
45- find_ups_product ( lardataobj )
46- find_ups_product ( larcorealg )
47- find_ups_product ( lardataalg )
48- find_ups_product ( nusimdata )
49- find_ups_product (clhep )
50- find_ups_boost ( )
51- find_ups_root ()
38+ find_package ( messagefacility REQUIRED )
39+ find_package ( canvas REQUIRED )
40+ find_package ( larcoreobj REQUIRED )
41+ find_package ( lardataobj REQUIRED )
42+ find_package ( larcorealg REQUIRED )
43+ find_package ( lardataalg REQUIRED )
44+ find_package ( nusimdata REQUIRED )
45+ find_package ( Boost COMPONENTS system )
46+ find_package ( ROOT REQUIRED )
47+ find_package ( CLHEP REQUIRED )
48+ find_package ( dk2nudata REQUIRED )
5249
5350# macros for dictionary and simple_plugin
5451include (ArtDictionary )
@@ -65,10 +62,8 @@ add_subdirectory(test)
6562
6663# ups - table and config files
6764# must be AFTER all other subdirectories
68- add_subdirectory (ups )
6965
7066# packaging utility - must be last
71- include (UseCPack )
7267
7368
7469message (STATUS
@@ -77,3 +72,4 @@ message(STATUS
7772 "\n -- ============================================================================="
7873 "\n -- "
7974 )
75+ cet_cmake_config ()
0 commit comments