-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
40 lines (36 loc) · 778 Bytes
/
CMakeLists.txt
File metadata and controls
40 lines (36 loc) · 778 Bytes
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
# VERSION
cmake_minimum_required(VERSION 3.10)
# PROJECT
project(yiffy VERSION 1.0.0 DESCRIPTION "The terminal app for downloading/fetching images from e621/e926" LANGUAGES C)
# SOURCE CODE DIRECTORY
add_subdirectory(src)
# GCC OPTIONS
target_compile_options(yiffy PRIVATE
-Wall
-Wextra
-Wpedantic
-Werror
-O2
-g
-pthread
-fstrict-aliasing
-fstack-protector-all
-fstack-clash-protection
-fcf-protection
-fno-strict-overflow
-fno-delete-null-pointer-checks
-fvisibility=hidden
-Wformat=2
-Wformat-security
-Wstrict-overflow=5
-Wcast-align
-D_FORTIFY_SOURCE=3
-fPIE
-pie
-Wl,-z,relro
-Wl,-z,now
-fno-plt
)
# C STANDARD
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED True)