-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
40 lines (28 loc) · 1.15 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
cmake_minimum_required(VERSION 3.10)
# Set the project name (and version?)
project(Logging)
# Specify the C++ standard
set(CMAKE_CXX_STANDARD 20)
# Changes the binary, static lib, and libraries default paths of the CMake build, respectively
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/bin)
set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib)
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib)
INCLUDE_DIRECTORIES ( include )
set( src_logging_lib
src/gabe/logging/logging.cpp
src/gabe/logging/Manager.cpp
src/gabe/logging/LoggerHandler.cpp
src/gabe/logging/core/Logger.cpp
src/gabe/logging/core/Sink.cpp
src/gabe/logging/handlers/Handler.cpp
src/gabe/logging/handlers/ConsoleStdOutHandler.cpp
src/gabe/logging/handlers/SizeRotatingFileHandler.cpp
src/gabe/logging/handlers/TimeRotatingFileHandler.cpp
src/gabe/logging/formatters/Formatter.cpp
src/gabe/logging/formatters/MultiFormatter.cpp
src/gabe/logging/formatters/Calendar.cpp
src/gabe/logging/formatters/Time.cpp
)
add_library( logging STATIC ${src_logging_lib} )
add_subdirectory(tests)
add_subdirectory(examples)