If you include the header, you can just use Approx without any extra defines. You will however, need one TU somewhere with CATCH_CONFIG_IMPL for linking to work properly.
xarn@DESKTOP-B2A3CNC:/mnt/c/ubuntu/temp :) head catch.hpp
/*
* Catch v2.7.2
* Generated: 2019-04-22 23:13:14.687465
* ----------------------------------------------------------
* This file has been merged from multiple headers. Please don't edit it directly
* Copyright (c) 2019 Two Blue Cubes Ltd. All rights reserved.
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
*/
xarn@DESKTOP-B2A3CNC:/mnt/c/ubuntu/temp :) cat approx.cpp
#include "catch.hpp"
TEST_CASE("Approx") {
REQUIRE(Approx(1) == 1);
}
xarn@DESKTOP-B2A3CNC:/mnt/c/ubuntu/temp :) clang++ -c approx.cpp -std=c++11
xarn@DESKTOP-B2A3CNC:/mnt/c/ubuntu/temp :)