forked from justanhduc/task-spooler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
38 lines (35 loc) · 773 Bytes
/
CMakeLists.txt
File metadata and controls
38 lines (35 loc) · 773 Bytes
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
cmake_minimum_required(VERSION 3.5)
project(Task-Spooler C)
set(CMAKE_C_STANDARD 11)
# VERSIONING
execute_process(
COMMAND git rev-parse --is-inside-work-tree
OUTPUT_VARIABLE GIT_REPO OUTPUT_STRIP_TRAILING_WHITESPACE
)
if (GIT_REPO)
execute_process (
COMMAND bash -c "echo $(git describe --dirty --always --tags) | tr - +"
OUTPUT_VARIABLE git_version
)
add_definitions(-DTS_VERSION=${git_version})
endif()
set(target ts)
add_executable(
${target}
client.c
env.c
error.c
execute.c
info.c
jobs.c
list.c
mail.c
main.c
msg.c
msgdump.c
print.c
server.c
server_start.c
signals.c
tail.c
)