-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (30 loc) · 944 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
36
cmake_minimum_required(VERSION 3.20)
project(BigNumberLibrary)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_C_STANDARD 23)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_FLAGS
"-Ofast -Wall -Wextra -Werror -Wpedantic -Wdeprecated \
-Wconversion -Wshadow -Wnon-virtual-dtor -Wcast-align \
-Wpointer-arith -Wunused -Woverloaded-virtual -flto=auto \
-Wno-stringop-overflow -Wuninitialized"
)
include_directories(components)
add_executable(app
components/BigNumber.hpp
components/BigInteger.hpp
components/NumberFormatException.hpp
components/ArithmeticException.hpp
components/Traits.hpp
main.cpp
)
add_executable(test
components/BigNumber.hpp
components/BigInteger.hpp
components/NumberFormatException.hpp
components/ArithmeticException.hpp
components/Traits.hpp
unit-tests/BigInteger.cpp
unit-tests/main.cpp
)
target_link_libraries(test gtest)