Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,32 @@ set(CMAKE_CXX_STANDARD 23)

include_directories(.)

file(GLOB VERIFY_SOURCES verify/*.test.cpp)
file(GLOB VERIFY_SOURCES
datastructure/*.test.cpp
geometry/*.test.cpp
graph/*.test.cpp
math/*.test.cpp
string/*.test.cpp
misc/*.test.cpp
)
file(GLOB VERIFY_SRC_SOURCES verify/src/*.cpp)

add_compile_options(-Wall -Wno-deprecated -Wno-cpp)

foreach(src ${VERIFY_SOURCES} ${VERIFY_SRC_SOURCES})
get_filename_component(name ${src} NAME_WE)
get_filename_component(name ${src} NAME_WLE)
add_executable(${name} ${src})
endforeach()

# --- Lint targets ---
file(GLOB_RECURSE ALL_SOURCES
datastructure/*.hpp graph/*.hpp math/*.hpp geometry/*.hpp string/*.hpp misc/*.hpp
verify/*.cpp verify/src/*.cpp
datastructure/*.hpp datastructure/*.test.cpp
graph/*.hpp graph/*.test.cpp
math/*.hpp math/*.test.cpp
geometry/*.hpp geometry/*.test.cpp
string/*.hpp string/*.test.cpp
misc/*.hpp misc/*.test.cpp
verify/src/*.cpp
)

find_program(CLANG_FORMAT clang-format)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=CGL_3_A"
#include "geometry/geometry.hpp"
#include "geometry/polygon.hpp"
#include "geometry/geometry.hpp"
#include "misc/template.hpp"

int main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=CGL_3_B"
#include "geometry/geometry.hpp"
#include "geometry/polygon.hpp"
#include "geometry/geometry.hpp"
#include "misc/template.hpp"

int main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=CGL_3_C"
#include "geometry/geometry.hpp"
#include "geometry/polygon.hpp"
#include "geometry/geometry.hpp"
#include "misc/template.hpp"

int main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=CGL_7_A"
#include "geometry/geometry.hpp"
#include "geometry/tangent.hpp"
#include "geometry/geometry.hpp"
#include "misc/template.hpp"

int main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=CGL_7_G"
#define ERROR 1e-8
#include "geometry/geometry.hpp"
#include "geometry/tangent.hpp"
#include "geometry/geometry.hpp"
#include "misc/template.hpp"

int main() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion verify/GRL_2_A.test.cpp → graph/kruskal.grl_2_a.test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_2_A"
#include "graph/kruskal.hpp"
#include "datastructure/unionfind.hpp"
#include "graph/graph.hpp"
#include "graph/kruskal.hpp"
#include "misc/template.hpp"

int main() {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion verify/GRL_3_C.test.cpp → graph/scc.grl_3_c.test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_3_C"
#include "graph/graph.hpp"
#include "graph/scc.hpp"
#include "graph/graph.hpp"
#include "misc/template.hpp"

int main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_4_B"
#include "graph/graph.hpp"
#include "graph/topologicalsort.hpp"
#include "graph/graph.hpp"
#include "misc/template.hpp"

int main() {
Expand Down
Loading