-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
35 lines (23 loc) · 852 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 3.20)
project(competitive_programming)
# find_package(nlohmann_json 3.2.0 REQUIRED)
set(CMAKE_CXX_STANDARD 20)
add_definitions(-DLOCAL)
include_directories(.)
#codechef
# add_executable(codechef codechef/starters/99/main.cpp)
#cses
# add_executable(cses cses/AdditionalProblems/main.cpp)
add_subdirectory(${PROJECT_SOURCE_DIR}/atcoder)
#temp
add_executable(temp temp.cpp)
# add_executable(spoj spoj/main.cpp)
# add_executable(projecteuler projecteuler/main.cpp)
# target_link_libraries(projecteuler PRIVATE nlohmann_json::nlohmann_json)
add_subdirectory(${PROJECT_SOURCE_DIR}/stress)
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
message(STATUS "Using ccache")
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif(CCACHE_FOUND)