-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
95 lines (87 loc) · 2.46 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
cmake_minimum_required(VERSION 3.10)
project(apollo_hdmap)
set(CMAKE_CXX_STANDARD 17)
find_package(PkgConfig REQUIRED)
find_package(Protobuf REQUIRED)
find_package(PROJ4 REQUIRED)
pkg_check_modules(GLOG REQUIRED libglog)
pkg_check_modules(GFLAGS REQUIRED gflags)
pkg_check_modules(EIGEN3 REQUIRED eigen3)
pkg_check_modules(PYTHON3 REQUIRED python3)
pkg_check_modules(TINYXML2 REQUIRED tinyxml2)
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS
proto/map_crosswalk.proto
proto/pnc_point.proto
proto/map_junction.proto
proto/map_geometry.proto
proto/map_overlap.proto
proto/navigation.proto
proto/geometry.proto
proto/map_pnc_junction.proto
proto/map_lane.proto
proto/map_road.proto
proto/map_speed_control.proto
proto/map_rsu.proto
proto/map_id.proto
proto/map.proto
proto/map_parking_space.proto
proto/error_code.proto
proto/map_clear_area.proto
proto/map_stop_sign.proto
proto/header.proto
proto/map_signal.proto
proto/map_speed_bump.proto
proto/map_yield_sign.proto
)
add_library(apollo_hdmap SHARED
src/hdmap_util.cc
src/math/math_utils.cc
src/math/polygon2d.cc
src/math/vec2d.cc
src/math/linear_interpolation.cc
src/math/box2d.cc
src/math/aabox2d.cc
src/math/line_segment2d.cc
src/adapter/xml_parser/junctions_xml_parser.cc
src/adapter/xml_parser/util_xml_parser.cc
src/adapter/xml_parser/objects_xml_parser.cc
src/adapter/xml_parser/signals_xml_parser.cc
src/adapter/xml_parser/roads_xml_parser.cc
src/adapter/xml_parser/header_xml_parser.cc
src/adapter/xml_parser/coordinate_convert_tool.cc
src/adapter/xml_parser/lanes_xml_parser.cc
src/adapter/opendrive_adapter.cc
src/adapter/proto_organizer.cc
src/hdmap.cc
src/hdmap_common.cc
src/config_gflags.cc
src/file.cc
src/hdmap_impl.cc
src/python/py_map.cc
${PROTO_SRCS}
)
target_include_directories(apollo_hdmap PRIVATE .
${Protobuf_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}
${GLOG_INCLUDE_DIRS}
${GFLAGS_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
${TINYXML2_INCLUDE_DIRS}
${PROJ4_INCLUDE_DIR}
${PYTHON3_INCLUDE_DIRS}
./src
)
set_target_properties(
apollo_hdmap
PROPERTIES
PREFIX ""
OUTPUT_NAME "_apollo_hdmap_wrapper"
LINKER_LANGUAGE CXX
)
target_link_libraries(apollo_hdmap
${PROTOBUF_LIBRARY}
${GLOG_LIBRARIES}
${GFLAGS_LIBRARIES}
${PYTHON3_LIBRARIES}
${TINYXML2_LIBRARIES}
${PROJ4_LIBRARIES})