From 30eb82e1b6e5616abe0ef3b28b9a30ec248305e2 Mon Sep 17 00:00:00 2001 From: Chip Hogg Date: Wed, 10 Jul 2024 17:26:03 -0400 Subject: [PATCH 1/3] Add CMake target for every remaining library This should, in principle, enable a full Au installation via CMake! I took a more expansive view of which libraries are "for public consumption" relative to bazel. The old division was based on a strong expectation that users would always want to include one or at most a very few files, before we fully appreciated the benefits of file-by-file inclusion for build speed. I'll bring bazel in line in a follow up PR. In making these CMake targets, I discovered two small irregularities in their bazel counterparts --- namely, a missing dependency, and a bizarre `copts` line that I think came from a stray default vim snippet. I fixed them in this same PR. Helps #215. In order to resolve it fully, we'll need to tidy up our documentation posture w.r.t. CMake. --- au/BUILD.bazel | 2 +- au/CMakeLists.txt | 472 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 473 insertions(+), 1 deletion(-) diff --git a/au/BUILD.bazel b/au/BUILD.bazel index 5843a97b..c5ca484d 100644 --- a/au/BUILD.bazel +++ b/au/BUILD.bazel @@ -70,6 +70,7 @@ cc_library( ":io", ":stdx", ":unit_of_measure", + "@com_google_googletest//:gtest", ], ) @@ -123,7 +124,6 @@ cc_test( name = "apply_magnitude_test", size = "small", srcs = ["apply_magnitude_test.cc"], - copts = ["-Iexternal/gtest/include"], deps = [ ":apply_magnitude", ":testing", diff --git a/au/CMakeLists.txt b/au/CMakeLists.txt index 4e2cf053..acff156f 100644 --- a/au/CMakeLists.txt +++ b/au/CMakeLists.txt @@ -14,10 +14,423 @@ include(../cmake/HeaderOnlyLibrary.cmake) +# +# Publicly exported targets +# + +header_only_library( + NAME au + HEADERS + au.hh + DEPS + chrono_interop + constant + math + GTEST_SRCS + au_test.cc + GTEST_EXTRA_DEPS + testing +) + +header_only_library( + NAME chrono_interop + HEADERS + chrono_interop.hh + DEPS + quantity + units + GTEST_SRCS + chrono_interop_test.cc + GTEST_EXTRA_DEPS + prefix + testing +) + +header_only_library( + NAME constant + HEADERS + constant.hh + DEPS + quantity + unit_of_measure + wrapper_operations + GTEST_SRCS + constant_test.cc + GTEST_EXTRA_DEPS + chrono_interop + testing + units +) + +header_only_library( + NAME io + HEADERS + io.hh + DEPS + quantity + quantity_point + zero + GTEST_SRCS + io_test.cc + GTEST_EXTRA_DEPS + prefix +) + +header_only_library( + NAME math + HEADERS + math.hh + DEPS + constant + quantity + quantity_point + units + GTEST_SRCS + math_test.cc + GTEST_EXTRA_DEPS + testing +) + +header_only_library( + NAME prefix + HEADERS + prefix.hh + DEPS + quantity + quantity_point + unit_of_measure + unit_symbol + GTEST_SRCS + testing +) + +header_only_library( + NAME quantity + HEADERS + quantity.hh + DEPS + apply_magnitude + conversion_policy + operators + rep + unit_of_measure + zero + GTEST_SRCS + quantity_chrono_policy_correspondence_test.cc + quantity_test.cc + GTEST_EXTRA_DEPS + chrono_policy_validation + prefix + testing +) + +header_only_library( + NAME quantity_point + HEADERS + quantity_point.hh + DEPS + quantity + stdx + utility + GTEST_SRCS + quantity_point_test.cc + GTEST_EXTRA_DEPS + prefix + testing +) + +header_only_library( + NAME testing + HEADERS + testing.hh + DEPS + io + stdx + unit_of_measure + GTest::gmock + GTEST_SRCS + testing_test.cc +) + +header_only_library( + NAME units + HEADERS + units/amperes.hh + units/bars.hh + units/becquerel.hh + units/bits.hh + units/bytes.hh + units/candelas.hh + units/celsius.hh + units/coulombs.hh + units/days.hh + units/degrees.hh + units/fahrenheit.hh + units/farads.hh + units/fathoms.hh + units/feet.hh + units/furlongs.hh + units/grams.hh + units/grays.hh + units/henries.hh + units/hertz.hh + units/hours.hh + units/inches.hh + units/joules.hh + units/katals.hh + units/kelvins.hh + units/knots.hh + units/liters.hh + units/lumens.hh + units/lux.hh + units/meters.hh + units/miles.hh + units/minutes.hh + units/moles.hh + units/nautical_miles.hh + units/newtons.hh + units/ohms.hh + units/pascals.hh + units/percent.hh + units/pounds_force.hh + units/pounds_mass.hh + units/radians.hh + units/revolutions.hh + units/seconds.hh + units/siemens.hh + units/slugs.hh + units/standard_gravity.hh + units/steradians.hh + units/tesla.hh + units/unos.hh + units/volts.hh + units/watts.hh + units/webers.hh + units/yards.hh + DEPS + prefix + quantity + quantity_point + unit_of_measure + unit_symbol + GTEST_SRCS + units/test/amperes_test.cc + units/test/bars_test.cc + units/test/becquerel_test.cc + units/test/bits_test.cc + units/test/bytes_test.cc + units/test/candelas_test.cc + units/test/celsius_test.cc + units/test/coulombs_test.cc + units/test/days_test.cc + units/test/degrees_test.cc + units/test/fahrenheit_test.cc + units/test/farads_test.cc + units/test/fathoms_test.cc + units/test/feet_test.cc + units/test/furlongs_test.cc + units/test/grams_test.cc + units/test/grays_test.cc + units/test/henries_test.cc + units/test/hertz_test.cc + units/test/hours_test.cc + units/test/inches_test.cc + units/test/joules_test.cc + units/test/katals_test.cc + units/test/kelvins_test.cc + units/test/knots_test.cc + units/test/liters_test.cc + units/test/lumens_test.cc + units/test/lux_test.cc + units/test/meters_test.cc + units/test/miles_test.cc + units/test/minutes_test.cc + units/test/moles_test.cc + units/test/nautical_miles_test.cc + units/test/newtons_test.cc + units/test/ohms_test.cc + units/test/pascals_test.cc + units/test/percent_test.cc + units/test/pounds_force_test.cc + units/test/pounds_mass_test.cc + units/test/radians_test.cc + units/test/revolutions_test.cc + units/test/seconds_test.cc + units/test/siemens_test.cc + units/test/slugs_test.cc + units/test/standard_gravity_test.cc + units/test/steradians_test.cc + units/test/tesla_test.cc + units/test/unos_test.cc + units/test/volts_test.cc + units/test/watts_test.cc + units/test/webers_test.cc + units/test/yards_test.cc + GTEST_EXTRA_DEPS + testing +) + +header_only_library( + NAME unit_symbol + HEADERS + unit_symbol.hh + DEPS + wrapper_operations + GTEST_SRCS + unit_symbol_test.cc + GTEST_EXTRA_DEPS + testing + units +) + # # Private implementation detail targets # +header_only_library( + NAME apply_magnitude + INTERNAL_ONLY + HEADERS + apply_magnitude.hh + DEPS + apply_rational_magnitude_to_integral + GTEST_SRCS + apply_magnitude_test.cc + GTEST_EXTRA_DEPS + testing +) + +header_only_library( + NAME apply_rational_magnitude_to_integral + INTERNAL_ONLY + HEADERS + apply_rational_magnitude_to_integral.hh + DEPS + magnitude + GTEST_SRCS + apply_rational_magnitude_to_integral_test.cc + GTEST_EXTRA_DEPS + testing +) + +header_only_library( + NAME chrono_policy_validation + INTERNAL_ONLY + HEADERS + chrono_policy_validation.hh + DEPS + dimension + quantity + stdx + unit_of_measure + GTest::gtest + GTEST_SRCS + chrono_policy_validation_test.cc + GTEST_EXTRA_DEPS + prefix + testing +) + + +header_only_library( + NAME conversion_policy + INTERNAL_ONLY + HEADERS + conversion_policy.hh + DEPS + magnitude + stdx + unit_of_measure + GTEST_SRCS + conversion_policy_test.cc +) + +header_only_library( + NAME dimension + INTERNAL_ONLY + HEADERS + dimension.hh + DEPS + packs + power_aliases + GTEST_SRCS + dimension_test.cc + GTEST_EXTRA_DEPS + testing + units +) + +header_only_library( + NAME magnitude + INTERNAL_ONLY + HEADERS + magnitude.hh + DEPS + packs + power_aliases + stdx + utility + zero + GTEST_SRCS + magnitude_test.cc + GTEST_EXTRA_DEPS + testing +) + +header_only_library( + NAME operators + INTERNAL_ONLY + HEADERS + operators.hh + GTEST_SRCS + operators_test.cc + GTEST_EXTRA_DEPS + testing +) + +header_only_library( + NAME packs + INTERNAL_ONLY + HEADERS + packs.hh + DEPS + stdx + utility + GTEST_SRCS + packs_test.cc +) + +header_only_library( + NAME power_aliases + INTERNAL_ONLY + HEADERS + power_aliases.hh + GTEST_SRCS + power_aliases_test.cc + GTEST_EXTRA_DEPS + packs +) + +header_only_library( + NAME rep + INTERNAL_ONLY + HEADERS + rep.hh + DEPS + stdx + GTEST_SRCS + rep_test.cc + GTEST_EXTRA_DEPS + chrono_interop + constant + magnitude + prefix + quantity + quantity_point + unit_symbol + units +) + header_only_library( NAME stdx INTERNAL_ONLY @@ -29,3 +442,62 @@ header_only_library( GTEST_SRCS stdx/test/utility_test.cc ) + +header_only_library( + NAME unit_of_measure + INTERNAL_ONLY + HEADERS + unit_of_measure.hh + DEPS + dimension + magnitude + power_aliases + stdx + utility + zero + GTEST_SRCS + unit_of_measure_test.cc + GTEST_EXTRA_DEPS + prefix + testing + units +) + +header_only_library( + NAME utility + INTERNAL_ONLY + HEADERS + utility/factoring.hh + utility/string_constant.hh + utility/type_traits.hh + DEPS + stdx + GTEST_SRCS + utility/test/factoring_test.cc + utility/test/string_constant_test.cc + utility/test/type_traits_test.cc +) + +header_only_library( + NAME wrapper_operations + INTERNAL_ONLY + HEADERS + wrapper_operations.hh + DEPS + quantity + stdx + GTEST_SRCS + wrapper_operations_test.cc + GTEST_EXTRA_DEPS + testing + units +) + +header_only_library( + NAME zero + INTERNAL_ONLY + HEADERS + zero.hh + GTEST_SRCS + zero_test.cc +) From 79c4cd8e575738b10c16abe08eedd92de7524409 Mon Sep 17 00:00:00 2001 From: Chip Hogg Date: Thu, 11 Jul 2024 12:53:09 -0400 Subject: [PATCH 2/3] Reduce spacing to 2 Not sure why it was 3 before, but that was a weird value. --- au/CMakeLists.txt | 802 +++++++++++++++++++++++----------------------- 1 file changed, 401 insertions(+), 401 deletions(-) diff --git a/au/CMakeLists.txt b/au/CMakeLists.txt index acff156f..770f4372 100644 --- a/au/CMakeLists.txt +++ b/au/CMakeLists.txt @@ -19,268 +19,268 @@ include(../cmake/HeaderOnlyLibrary.cmake) # header_only_library( - NAME au - HEADERS - au.hh - DEPS - chrono_interop - constant - math - GTEST_SRCS - au_test.cc - GTEST_EXTRA_DEPS - testing + NAME au + HEADERS + au.hh + DEPS + chrono_interop + constant + math + GTEST_SRCS + au_test.cc + GTEST_EXTRA_DEPS + testing ) header_only_library( - NAME chrono_interop - HEADERS - chrono_interop.hh - DEPS - quantity - units - GTEST_SRCS - chrono_interop_test.cc - GTEST_EXTRA_DEPS - prefix - testing + NAME chrono_interop + HEADERS + chrono_interop.hh + DEPS + quantity + units + GTEST_SRCS + chrono_interop_test.cc + GTEST_EXTRA_DEPS + prefix + testing ) header_only_library( - NAME constant - HEADERS - constant.hh - DEPS - quantity - unit_of_measure - wrapper_operations - GTEST_SRCS - constant_test.cc - GTEST_EXTRA_DEPS - chrono_interop - testing - units + NAME constant + HEADERS + constant.hh + DEPS + quantity + unit_of_measure + wrapper_operations + GTEST_SRCS + constant_test.cc + GTEST_EXTRA_DEPS + chrono_interop + testing + units ) header_only_library( - NAME io - HEADERS - io.hh - DEPS - quantity - quantity_point - zero - GTEST_SRCS - io_test.cc - GTEST_EXTRA_DEPS - prefix + NAME io + HEADERS + io.hh + DEPS + quantity + quantity_point + zero + GTEST_SRCS + io_test.cc + GTEST_EXTRA_DEPS + prefix ) header_only_library( - NAME math - HEADERS - math.hh - DEPS - constant - quantity - quantity_point - units - GTEST_SRCS - math_test.cc - GTEST_EXTRA_DEPS - testing + NAME math + HEADERS + math.hh + DEPS + constant + quantity + quantity_point + units + GTEST_SRCS + math_test.cc + GTEST_EXTRA_DEPS + testing ) header_only_library( - NAME prefix - HEADERS - prefix.hh - DEPS - quantity - quantity_point - unit_of_measure - unit_symbol - GTEST_SRCS - testing + NAME prefix + HEADERS + prefix.hh + DEPS + quantity + quantity_point + unit_of_measure + unit_symbol + GTEST_SRCS + testing ) header_only_library( - NAME quantity - HEADERS - quantity.hh - DEPS - apply_magnitude - conversion_policy - operators - rep - unit_of_measure - zero - GTEST_SRCS - quantity_chrono_policy_correspondence_test.cc - quantity_test.cc - GTEST_EXTRA_DEPS - chrono_policy_validation - prefix - testing + NAME quantity + HEADERS + quantity.hh + DEPS + apply_magnitude + conversion_policy + operators + rep + unit_of_measure + zero + GTEST_SRCS + quantity_chrono_policy_correspondence_test.cc + quantity_test.cc + GTEST_EXTRA_DEPS + chrono_policy_validation + prefix + testing ) header_only_library( - NAME quantity_point - HEADERS - quantity_point.hh - DEPS - quantity - stdx - utility - GTEST_SRCS - quantity_point_test.cc - GTEST_EXTRA_DEPS - prefix - testing + NAME quantity_point + HEADERS + quantity_point.hh + DEPS + quantity + stdx + utility + GTEST_SRCS + quantity_point_test.cc + GTEST_EXTRA_DEPS + prefix + testing ) header_only_library( - NAME testing - HEADERS - testing.hh - DEPS - io - stdx - unit_of_measure - GTest::gmock - GTEST_SRCS - testing_test.cc + NAME testing + HEADERS + testing.hh + DEPS + io + stdx + unit_of_measure + GTest::gmock + GTEST_SRCS + testing_test.cc ) header_only_library( - NAME units - HEADERS - units/amperes.hh - units/bars.hh - units/becquerel.hh - units/bits.hh - units/bytes.hh - units/candelas.hh - units/celsius.hh - units/coulombs.hh - units/days.hh - units/degrees.hh - units/fahrenheit.hh - units/farads.hh - units/fathoms.hh - units/feet.hh - units/furlongs.hh - units/grams.hh - units/grays.hh - units/henries.hh - units/hertz.hh - units/hours.hh - units/inches.hh - units/joules.hh - units/katals.hh - units/kelvins.hh - units/knots.hh - units/liters.hh - units/lumens.hh - units/lux.hh - units/meters.hh - units/miles.hh - units/minutes.hh - units/moles.hh - units/nautical_miles.hh - units/newtons.hh - units/ohms.hh - units/pascals.hh - units/percent.hh - units/pounds_force.hh - units/pounds_mass.hh - units/radians.hh - units/revolutions.hh - units/seconds.hh - units/siemens.hh - units/slugs.hh - units/standard_gravity.hh - units/steradians.hh - units/tesla.hh - units/unos.hh - units/volts.hh - units/watts.hh - units/webers.hh - units/yards.hh - DEPS - prefix - quantity - quantity_point - unit_of_measure - unit_symbol - GTEST_SRCS - units/test/amperes_test.cc - units/test/bars_test.cc - units/test/becquerel_test.cc - units/test/bits_test.cc - units/test/bytes_test.cc - units/test/candelas_test.cc - units/test/celsius_test.cc - units/test/coulombs_test.cc - units/test/days_test.cc - units/test/degrees_test.cc - units/test/fahrenheit_test.cc - units/test/farads_test.cc - units/test/fathoms_test.cc - units/test/feet_test.cc - units/test/furlongs_test.cc - units/test/grams_test.cc - units/test/grays_test.cc - units/test/henries_test.cc - units/test/hertz_test.cc - units/test/hours_test.cc - units/test/inches_test.cc - units/test/joules_test.cc - units/test/katals_test.cc - units/test/kelvins_test.cc - units/test/knots_test.cc - units/test/liters_test.cc - units/test/lumens_test.cc - units/test/lux_test.cc - units/test/meters_test.cc - units/test/miles_test.cc - units/test/minutes_test.cc - units/test/moles_test.cc - units/test/nautical_miles_test.cc - units/test/newtons_test.cc - units/test/ohms_test.cc - units/test/pascals_test.cc - units/test/percent_test.cc - units/test/pounds_force_test.cc - units/test/pounds_mass_test.cc - units/test/radians_test.cc - units/test/revolutions_test.cc - units/test/seconds_test.cc - units/test/siemens_test.cc - units/test/slugs_test.cc - units/test/standard_gravity_test.cc - units/test/steradians_test.cc - units/test/tesla_test.cc - units/test/unos_test.cc - units/test/volts_test.cc - units/test/watts_test.cc - units/test/webers_test.cc - units/test/yards_test.cc - GTEST_EXTRA_DEPS - testing + NAME units + HEADERS + units/amperes.hh + units/bars.hh + units/becquerel.hh + units/bits.hh + units/bytes.hh + units/candelas.hh + units/celsius.hh + units/coulombs.hh + units/days.hh + units/degrees.hh + units/fahrenheit.hh + units/farads.hh + units/fathoms.hh + units/feet.hh + units/furlongs.hh + units/grams.hh + units/grays.hh + units/henries.hh + units/hertz.hh + units/hours.hh + units/inches.hh + units/joules.hh + units/katals.hh + units/kelvins.hh + units/knots.hh + units/liters.hh + units/lumens.hh + units/lux.hh + units/meters.hh + units/miles.hh + units/minutes.hh + units/moles.hh + units/nautical_miles.hh + units/newtons.hh + units/ohms.hh + units/pascals.hh + units/percent.hh + units/pounds_force.hh + units/pounds_mass.hh + units/radians.hh + units/revolutions.hh + units/seconds.hh + units/siemens.hh + units/slugs.hh + units/standard_gravity.hh + units/steradians.hh + units/tesla.hh + units/unos.hh + units/volts.hh + units/watts.hh + units/webers.hh + units/yards.hh + DEPS + prefix + quantity + quantity_point + unit_of_measure + unit_symbol + GTEST_SRCS + units/test/amperes_test.cc + units/test/bars_test.cc + units/test/becquerel_test.cc + units/test/bits_test.cc + units/test/bytes_test.cc + units/test/candelas_test.cc + units/test/celsius_test.cc + units/test/coulombs_test.cc + units/test/days_test.cc + units/test/degrees_test.cc + units/test/fahrenheit_test.cc + units/test/farads_test.cc + units/test/fathoms_test.cc + units/test/feet_test.cc + units/test/furlongs_test.cc + units/test/grams_test.cc + units/test/grays_test.cc + units/test/henries_test.cc + units/test/hertz_test.cc + units/test/hours_test.cc + units/test/inches_test.cc + units/test/joules_test.cc + units/test/katals_test.cc + units/test/kelvins_test.cc + units/test/knots_test.cc + units/test/liters_test.cc + units/test/lumens_test.cc + units/test/lux_test.cc + units/test/meters_test.cc + units/test/miles_test.cc + units/test/minutes_test.cc + units/test/moles_test.cc + units/test/nautical_miles_test.cc + units/test/newtons_test.cc + units/test/ohms_test.cc + units/test/pascals_test.cc + units/test/percent_test.cc + units/test/pounds_force_test.cc + units/test/pounds_mass_test.cc + units/test/radians_test.cc + units/test/revolutions_test.cc + units/test/seconds_test.cc + units/test/siemens_test.cc + units/test/slugs_test.cc + units/test/standard_gravity_test.cc + units/test/steradians_test.cc + units/test/tesla_test.cc + units/test/unos_test.cc + units/test/volts_test.cc + units/test/watts_test.cc + units/test/webers_test.cc + units/test/yards_test.cc + GTEST_EXTRA_DEPS + testing ) header_only_library( - NAME unit_symbol - HEADERS - unit_symbol.hh - DEPS - wrapper_operations - GTEST_SRCS - unit_symbol_test.cc - GTEST_EXTRA_DEPS - testing - units + NAME unit_symbol + HEADERS + unit_symbol.hh + DEPS + wrapper_operations + GTEST_SRCS + unit_symbol_test.cc + GTEST_EXTRA_DEPS + testing + units ) # @@ -288,216 +288,216 @@ header_only_library( # header_only_library( - NAME apply_magnitude - INTERNAL_ONLY - HEADERS - apply_magnitude.hh - DEPS - apply_rational_magnitude_to_integral - GTEST_SRCS - apply_magnitude_test.cc - GTEST_EXTRA_DEPS - testing + NAME apply_magnitude + INTERNAL_ONLY + HEADERS + apply_magnitude.hh + DEPS + apply_rational_magnitude_to_integral + GTEST_SRCS + apply_magnitude_test.cc + GTEST_EXTRA_DEPS + testing ) header_only_library( - NAME apply_rational_magnitude_to_integral - INTERNAL_ONLY - HEADERS - apply_rational_magnitude_to_integral.hh - DEPS - magnitude - GTEST_SRCS - apply_rational_magnitude_to_integral_test.cc - GTEST_EXTRA_DEPS - testing + NAME apply_rational_magnitude_to_integral + INTERNAL_ONLY + HEADERS + apply_rational_magnitude_to_integral.hh + DEPS + magnitude + GTEST_SRCS + apply_rational_magnitude_to_integral_test.cc + GTEST_EXTRA_DEPS + testing ) header_only_library( - NAME chrono_policy_validation - INTERNAL_ONLY - HEADERS - chrono_policy_validation.hh - DEPS - dimension - quantity - stdx - unit_of_measure - GTest::gtest - GTEST_SRCS - chrono_policy_validation_test.cc - GTEST_EXTRA_DEPS - prefix - testing + NAME chrono_policy_validation + INTERNAL_ONLY + HEADERS + chrono_policy_validation.hh + DEPS + dimension + quantity + stdx + unit_of_measure + GTest::gtest + GTEST_SRCS + chrono_policy_validation_test.cc + GTEST_EXTRA_DEPS + prefix + testing ) header_only_library( - NAME conversion_policy - INTERNAL_ONLY - HEADERS - conversion_policy.hh - DEPS - magnitude - stdx - unit_of_measure - GTEST_SRCS - conversion_policy_test.cc + NAME conversion_policy + INTERNAL_ONLY + HEADERS + conversion_policy.hh + DEPS + magnitude + stdx + unit_of_measure + GTEST_SRCS + conversion_policy_test.cc ) header_only_library( - NAME dimension - INTERNAL_ONLY - HEADERS - dimension.hh - DEPS - packs - power_aliases - GTEST_SRCS - dimension_test.cc - GTEST_EXTRA_DEPS - testing - units + NAME dimension + INTERNAL_ONLY + HEADERS + dimension.hh + DEPS + packs + power_aliases + GTEST_SRCS + dimension_test.cc + GTEST_EXTRA_DEPS + testing + units ) header_only_library( - NAME magnitude - INTERNAL_ONLY - HEADERS - magnitude.hh - DEPS - packs - power_aliases - stdx - utility - zero - GTEST_SRCS - magnitude_test.cc - GTEST_EXTRA_DEPS - testing + NAME magnitude + INTERNAL_ONLY + HEADERS + magnitude.hh + DEPS + packs + power_aliases + stdx + utility + zero + GTEST_SRCS + magnitude_test.cc + GTEST_EXTRA_DEPS + testing ) header_only_library( - NAME operators - INTERNAL_ONLY - HEADERS - operators.hh - GTEST_SRCS - operators_test.cc - GTEST_EXTRA_DEPS - testing + NAME operators + INTERNAL_ONLY + HEADERS + operators.hh + GTEST_SRCS + operators_test.cc + GTEST_EXTRA_DEPS + testing ) header_only_library( - NAME packs - INTERNAL_ONLY - HEADERS - packs.hh - DEPS - stdx - utility - GTEST_SRCS - packs_test.cc + NAME packs + INTERNAL_ONLY + HEADERS + packs.hh + DEPS + stdx + utility + GTEST_SRCS + packs_test.cc ) header_only_library( - NAME power_aliases - INTERNAL_ONLY - HEADERS - power_aliases.hh - GTEST_SRCS - power_aliases_test.cc - GTEST_EXTRA_DEPS - packs + NAME power_aliases + INTERNAL_ONLY + HEADERS + power_aliases.hh + GTEST_SRCS + power_aliases_test.cc + GTEST_EXTRA_DEPS + packs ) header_only_library( - NAME rep - INTERNAL_ONLY - HEADERS - rep.hh - DEPS - stdx - GTEST_SRCS - rep_test.cc - GTEST_EXTRA_DEPS - chrono_interop - constant - magnitude - prefix - quantity - quantity_point - unit_symbol - units + NAME rep + INTERNAL_ONLY + HEADERS + rep.hh + DEPS + stdx + GTEST_SRCS + rep_test.cc + GTEST_EXTRA_DEPS + chrono_interop + constant + magnitude + prefix + quantity + quantity_point + unit_symbol + units ) header_only_library( - NAME stdx - INTERNAL_ONLY - HEADERS - stdx/experimental/is_detected.hh - stdx/functional.hh - stdx/type_traits.hh - stdx/utility.hh - GTEST_SRCS - stdx/test/utility_test.cc + NAME stdx + INTERNAL_ONLY + HEADERS + stdx/experimental/is_detected.hh + stdx/functional.hh + stdx/type_traits.hh + stdx/utility.hh + GTEST_SRCS + stdx/test/utility_test.cc ) header_only_library( - NAME unit_of_measure - INTERNAL_ONLY - HEADERS - unit_of_measure.hh - DEPS - dimension - magnitude - power_aliases - stdx - utility - zero - GTEST_SRCS - unit_of_measure_test.cc - GTEST_EXTRA_DEPS - prefix - testing - units + NAME unit_of_measure + INTERNAL_ONLY + HEADERS + unit_of_measure.hh + DEPS + dimension + magnitude + power_aliases + stdx + utility + zero + GTEST_SRCS + unit_of_measure_test.cc + GTEST_EXTRA_DEPS + prefix + testing + units ) header_only_library( - NAME utility - INTERNAL_ONLY - HEADERS - utility/factoring.hh - utility/string_constant.hh - utility/type_traits.hh - DEPS - stdx - GTEST_SRCS - utility/test/factoring_test.cc - utility/test/string_constant_test.cc - utility/test/type_traits_test.cc + NAME utility + INTERNAL_ONLY + HEADERS + utility/factoring.hh + utility/string_constant.hh + utility/type_traits.hh + DEPS + stdx + GTEST_SRCS + utility/test/factoring_test.cc + utility/test/string_constant_test.cc + utility/test/type_traits_test.cc ) header_only_library( - NAME wrapper_operations - INTERNAL_ONLY - HEADERS - wrapper_operations.hh - DEPS - quantity - stdx - GTEST_SRCS - wrapper_operations_test.cc - GTEST_EXTRA_DEPS - testing - units + NAME wrapper_operations + INTERNAL_ONLY + HEADERS + wrapper_operations.hh + DEPS + quantity + stdx + GTEST_SRCS + wrapper_operations_test.cc + GTEST_EXTRA_DEPS + testing + units ) header_only_library( - NAME zero - INTERNAL_ONLY - HEADERS - zero.hh - GTEST_SRCS - zero_test.cc + NAME zero + INTERNAL_ONLY + HEADERS + zero.hh + GTEST_SRCS + zero_test.cc ) From 2af60450de93a6658340b40c1b92110001c45774 Mon Sep 17 00:00:00 2001 From: Chip Hogg Date: Thu, 11 Jul 2024 12:55:36 -0400 Subject: [PATCH 3/3] Fix missing test file --- au/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/au/CMakeLists.txt b/au/CMakeLists.txt index 770f4372..7b237dc0 100644 --- a/au/CMakeLists.txt +++ b/au/CMakeLists.txt @@ -101,6 +101,8 @@ header_only_library( unit_of_measure unit_symbol GTEST_SRCS + prefix_test.cc + GTEST_EXTRA_DEPS testing )