-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
51 lines (41 loc) · 1005 Bytes
/
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
cmake_minimum_required(VERSION 3.14)
project(cb_v2g
VERSION 0.2.1
DESCRIPTION "V2GTP EXI library"
HOMEPAGE_URL "https://github.com/Everest/libcbv2g"
LANGUAGES C CXX
)
find_package(everest-cmake 0.1 REQUIRED
PATHS ../everest-cmake
)
# options
option(CB_V2G_INSTALL "Install the library (shared data might be installed anyway)" ${EVC_MAIN_PROJECT})
add_subdirectory(lib)
message(STATUS "library code based on cbexigen generator version: 98e3fd3 @ feature/use_big_int_for_integer_fixup")
# tests
if (CB_V2G_BUILD_TESTS)
include(CTest)
add_subdirectory(tests)
endif()
# packaging
if (CB_V2G_INSTALL)
install(
TARGETS
cbv2g_exi_codec
cbv2g_din
cbv2g_iso2
cbv2g_iso20
cbv2g_tp
EXPORT cbv2g-targets
LIBRARY
)
install(
DIRECTORY include/
TYPE INCLUDE
)
evc_setup_package(
NAME cbv2g
NAMESPACE cbv2g
EXPORT cbv2g-targets
)
endif()