-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
66 lines (54 loc) · 1.45 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
58
59
60
61
62
63
64
65
# CMakeLists.txt - logviewer
#
# Copyright 2012-2016 Pietro Mele
cmake_minimum_required(VERSION 3.0)
set(PRJ logviewer)
message("==============================================")
message("Building project: ${PRJ}")
message("==============================================")
project(${PRJ})
# Specify the build type on the command line: Release, Debug, RelWithDebInfo, MinSizeRel
if(CMAKE_BUILD_TYPE MATCHES "")
#set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_BUILD_TYPE Release)
endif()
# Specify C++ standard version
set(CMAKE_CXX_FLAGS "-std=c++14 -stdlib=libc++")
# Extra code in debug mode
if(CMAKE_BUILD_TYPE MATCHES "Debug")
message("Building extra checks and output in debug mode.")
add_definitions(-DVERBOSE)
endif()
# Internal tests: LOGCONTEXT_TEST, READ_KEYBOARD_TEST
#add_definitions(-DRUN_INTERNAL_TESTS)
#add_definitions(-DLOGCONTEXT_TEST)
#add_definitions(-DREAD_KEYBOARD_TEST)
message("Building with: " ${CMAKE_CXX_COMPILER} " " ${CMAKE_CXX_FLAGS} " " ${CMAKE_BUILD_TYPE})
set(SRC
CSS_default.h
entrypoint.cpp
logviewer.cpp
logviewer_html.cpp
logviewer.hpp
logLevels.cpp
logLevels.h
LogContext.cpp
LogContext.hpp
LogContext_test.cpp
LogFormatter.cpp
LogFormatter_html.cpp
LogFormatter.hpp
logviewer.css
progArgs.cpp
progArgs.h
ReadKeyboard.cpp
ReadKeyboard.h
ReadKeyboard_test.cpp
README.md
RunInternalTests.cpp
RunInternalTests.h
textModeFormatting.h
TODO
)
add_executable(${PRJ} ${SRC})
add_executable(${PRJ}_test test_logsGenerator.cpp)