-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
57 lines (51 loc) · 1.5 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
45
46
47
48
49
50
51
52
53
54
55
56
57
#
cmake_minimum_required(VERSION 3.11)
project(gcpp-dev
VERSION 2.0.0
LANGUAGES CXX
)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# For development
add_library(gcpp
src/gcpp/color.hpp
src/gcpp/container/acme.h
src/gcpp/container/Sack.h
src/gcpp/exception/fail.cpp src/gcpp/exception/fail.hpp
src/gcpp/guard/CallOnEnd.h
src/gcpp/guard/ChangeOnEnd.h
src/gcpp/i18n/i18n-boost.cpp
src/gcpp/i18n/i18n.h
src/gcpp/input/SecretCin.cpp src/gcpp/input/SecretCin.h
src/gcpp/math/Bezier.h
src/gcpp/math/Percent.h src/gcpp/math/Percent.cpp
src/gcpp/math/Point.h
src/gcpp/math/traits.h
src/gcpp/nice/number.cpp src/gcpp/nice/number.hpp
src/gcpp/nice/time.cpp src/gcpp/nice/time.hpp
src/gcpp/nice/to_string.hpp
src/gcpp/pimpl.h
src/gcpp/random/MersenneTwister.cpp src/gcpp/random/MersenneTwister.h
src/gcpp/stream/StreamScopeFormat.hpp
src/gcpp/string/acme.cpp src/gcpp/string/acme.hpp
src/gcpp/string/ConstexprString.hpp
src/gcpp/string/from_string.cpp src/gcpp/string/from_string.hpp
src/gcpp/string/to_string.cpp src/gcpp/string/to_string.hpp
src/gcpp/time.cpp src/gcpp/time.hpp
src/gcpp/type_name.h
src/gcpp/where.hpp
)
target_compile_definitions(gcpp PUBLIC WHERE_PROJECT_ROOT="${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(gcpp PUBLIC src/)
target_compile_options(gcpp
PUBLIC
-Wall -Wpedantic -Wextra
-Wnon-virtual-dtor
-Werror
-Wno-unused-parameter
-Wno-error=deprecated-declarations
# ----------------------------------------
PRIVATE
-fPIC
)
add_subdirectory(test/)