-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
44 lines (38 loc) · 1.16 KB
/
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
36
37
38
39
40
41
42
43
44
# minimum CMake version required
cmake_minimum_required(VERSION 3.15)
# Project name, version and description
project(Antispambot VERSION 1.1 DESCRIPTION "A discord bot to prevent spam")
set(DPP_CORO ON)
# Add DPP as dependency
add_subdirectory(libs/DPP)
add_subdirectory(libs/spdlog)
# Create an executable
add_executable(${PROJECT_NAME}
src/main.cpp
# your others files...
src/utils.hpp
src/classes/ConfigSet.cpp
src/classes/ConfigSet.h
src/classes/ButtonHandler.hpp
src/classes/CachedGuildMember.cpp
src/commands/info.hpp
src/commands/manage.hpp
src/commands/massban.hpp
src/commands/masskick.hpp
)
# Linking libraries
target_link_libraries(${PROJECT_NAME}
dpp
spdlog # if you need a logger. Don't forget to clone sources
# in the `libs/` directory
)
# Specify includes
target_include_directories(${PROJECT_NAME} PRIVATE
libs/DPP/include
libs/spdlog/include # Like before, if you need spdlog
)
# Set C++ version
set_target_properties(${PROJECT_NAME} PROPERTIES
CXX_STANDARD 20
CXX_STANDARD_REQUIRED ON
)