-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
78 lines (69 loc) · 1.52 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
66
67
68
69
70
71
72
73
74
75
76
77
78
cmake_minimum_required(VERSION 3.5)
project(argdata)
option(BUILD_SHARED_LIBS "Build as shared library" ON)
include(GNUInstallDirs)
add_library(argdata
src/argdata_create_binary.c
src/argdata_create_fd.c
src/argdata_create_float.c
src/argdata_create_int_s.c
src/argdata_create_int_u.c
src/argdata_create_map.c
src/argdata_create_seq.c
src/argdata_create_str.c
src/argdata_create_str_c.c
src/argdata_create_timestamp.c
src/argdata_false.c
src/argdata_free.c
src/argdata_from_buffer.c
src/argdata_get_binary.c
src/argdata_get_bool.c
src/argdata_get_fd.c
src/argdata_get_float.c
src/argdata_get_int_s.c
src/argdata_get_int_u.c
src/argdata_get_str.c
src/argdata_get_str_c.c
src/argdata_get_timestamp.c
src/argdata_map_iterate.c
src/argdata_map_get.c
src/argdata_map_next.c
src/argdata_null.c
src/argdata_print_yaml.c
src/argdata_reader_create.c
src/argdata_reader_free.c
src/argdata_reader_get.c
src/argdata_reader_pull.c
src/argdata_reader_release_fd.c
src/argdata_seq_iterate.c
src/argdata_seq_get.c
src/argdata_seq_next.c
src/argdata_serialize.c
src/argdata_serialized_length.c
src/argdata_true.c
src/argdata_writer_create.c
src/argdata_writer_free.c
src/argdata_writer_push.c
src/argdata_writer_set.c
)
target_link_libraries(argdata m)
target_include_directories(argdata PUBLIC src)
set_property(
TARGET
argdata
PROPERTY VERSION
"1"
)
install(
TARGETS
argdata
DESTINATION
${CMAKE_INSTALL_LIBDIR}
)
install(
FILES
src/argdata.h
src/argdata.hpp
DESTINATION
${CMAKE_INSTALL_INCLUDEDIR}
)