mirror of
https://gitlab.com/mfocko/Codeforces.git
synced 2024-11-09 13:49:06 +01:00
chore(cpp): support catch for tests
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
6f4eb98203
commit
12ffad5a8b
1 changed files with 5 additions and 2 deletions
|
@ -1,8 +1,11 @@
|
|||
CXX=clang++
|
||||
CXXFLAGS=-std=c++20 -Wall -Wextra
|
||||
|
||||
%: format %.cpp
|
||||
$(CXX) $(CXXFLAGS) -g $^ -o $@
|
||||
catch2.o: ../.common/catch_amalgamated.cpp ../.common/catch_amalgamated.hpp
|
||||
$(CXX) $(CXXFLAGS) -g -c ../.common/catch_amalgamated.cpp -o catch2.o
|
||||
|
||||
%: catch2.o %.cpp
|
||||
$(CXX) $(CXXFLAGS) -DTEST -g $^ -o $@
|
||||
|
||||
format:
|
||||
clang-format -i -style=google *.cpp
|
||||
|
|
Loading…
Reference in a new issue