-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathCMakeLists.txt
68 lines (59 loc) · 1.99 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
cmake_minimum_required(VERSION 3.13)
cmake_policy(VERSION 3.13)
########################################################################################################################
project(fty_common
VERSION 1.0.0
DESCRIPTION "Provides common tools for agents"
)
########################################################################################################################
find_package(fty-cmake PATHS ${CMAKE_BINARY_DIR}/fty-cmake)
########################################################################################################################
etn_target(shared ${PROJECT_NAME}
PUBLIC_INCLUDE_DIR include
PUBLIC
fty_common_agents.h
fty_common_base.h
fty_common_filesystem.h
fty_common_json.h
fty_common_macros.h
fty_common_str_defs.h
fty_common_asset_types.h
fty_common_client.h
fty_common.h
fty_common_nut_types.h
fty_common_sync_server.h
fty_common_utf8.h
fty_common_unit_tests.h
SOURCES
src/fty_common_asset_types.cc
src/fty_common_filesystem.cc
src/fty_common_json.cc
src/fty_common_str_defs.cc
src/fty_common_utf8.cc
src/fty_common_unit_tests.cc
FLAGS
-Wno-format-nonliteral
USES
czmq
cxxtools
fty_common_logging
pthread
)
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR})
########################################################################################################################
etn_test_target(${PROJECT_NAME}
CONFIGS
test/data/example.json
test/data/test-config.conf
SOURCES
test/main.cpp
test/fty_common_base.cc
test/fty_common_json.cc
test/fty_common_unit_tests.cc
test/fty_common_utf8.cc
USES
pthread
SUBDIR
test
)
########################################################################################################################