1 2 3 4
llnl-units provides CMake targets: find_package(llnl-units CONFIG REQUIRED) target_link_libraries(main PRIVATE llnl-units::units)