-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
58 lines (48 loc) · 1.77 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
cmake_minimum_required(VERSION 3.5)
project(ttt
VERSION 1.6.1)
include_directories(${CMAKE_SOURCE_DIR})
set(CMAKE_CXX_STANDARD 17)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin/mac)
else()
# Linux
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin/linux)
endif()
include_directories("${CMAKE_SOURCE_DIR}/src")
set (TTT_EXECUTABLE_NAME "ttt")
set (TTT_VERSION_MAJOR 1)
set (TTT_VERSION_MINOR 7)
set (TTT_VERSION_PATCH 0)
# Generate config.h from config.h.in, with injected CMake values
configure_file (ttt/config.h.in ../ttt/config.h)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -pedantic")
# tictac-track client executable
add_executable(ttt
ttt/class/app/app.cc
ttt/class/app/app_arguments.cc
ttt/class/app/app_commands.cc
ttt/class/app/app_config.cc
ttt/class/app/app_error.cc
ttt/class/app/app_help.cc
ttt/class/app/app_locale.cc
ttt/helper/helper_date_time.cc
ttt/helper/helper_file.cc
ttt/helper/helper_html.cc
ttt/helper/helper_numeric.cc
ttt/helper/helper_string.cc
ttt/helper/helper_system.cc
ttt/helper/helper_tui.cc
ttt/class/report/report_backup.cc
ttt/class/report/report_browser.cc
ttt/class/report/report_crud.cc
ttt/class/report/report_date_time.cc
ttt/class/report/report_file.cc
ttt/class/report/report_parser.cc
ttt/class/report/report_recalculator.cc
ttt/class/report/report_renderer.cc
ttt/class/report/report_renderer_cli.cc
ttt/class/report/report_renderer_csv.cc
ttt/class/report/report.cc
vendor/entities/decode_html_entities_utf8.cc
ttt/main.cc)