forked from Coding-Bunker/unofficial-discord-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (30 loc) · 1.05 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
cmake_minimum_required(VERSION 3.16.3)
project(
unofficial-discord-client
VERSION 0.1
DESCRIPTION "Discord unofficial desktop application"
HOMEPAGE_URL "https://github.com/Coding-Bunker/unofficial-discord-client/"
LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
if(MSVC)
set(CMAKE_CXX_FLAGS "/W4 /wd4711 /wd4577 /experimental:external \
/external:anglebrackets /external:W0")
else()
set(CMAKE_CXX_FLAGS
"-Wall -Wextra -Wpedantic -Wdouble-promotion -Wimplicit-fallthrough \
-Winit-self -Wfloat-equal -Wformat=2 -Wmissing-include-dirs \
-Wnull-dereference -Wshadow -Wstrict-overflow=5 -Wtautological-compare")
endif()
find_program(CLANG_TIDY_COMMAND NAMES clang-tidy)
if(CLANG_TIDY_COMMAND)
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND};--format-style=file")
endif()
add_subdirectory(src)