2024-02-05 18:52:25 +08:00
|
|
|
project (
|
|
|
|
osm-map-renderer
|
2024-03-13 05:29:24 +08:00
|
|
|
LANGUAGES
|
|
|
|
CXX
|
|
|
|
VERSION
|
|
|
|
${CARLA_VERSION}
|
2024-02-05 18:52:25 +08:00
|
|
|
)
|
2023-03-04 00:26:48 +08:00
|
|
|
|
2024-03-13 05:29:24 +08:00
|
|
|
set (
|
|
|
|
OSM_RENDERER_SOURCE_PATH
|
|
|
|
${CARLA_WORKSPACE_PATH}/osm-world-renderer/OsmRenderer
|
|
|
|
)
|
2023-03-04 00:26:48 +08:00
|
|
|
|
2024-05-15 23:50:06 +08:00
|
|
|
carla_add_library (
|
2024-03-13 05:29:24 +08:00
|
|
|
lib-osm-map-renderer
|
2024-05-15 23:50:06 +08:00
|
|
|
"Build OSM-Map-Renderer."
|
2024-03-13 05:29:24 +08:00
|
|
|
${OSM_RENDERER_SOURCE_PATH}/src/OsmRenderer.cpp
|
|
|
|
${OSM_RENDERER_SOURCE_PATH}/src/MapDrawer.cpp
|
|
|
|
${OSM_RENDERER_SOURCE_PATH}/src/MapRasterizer.cpp
|
2024-02-20 23:34:31 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries (
|
|
|
|
lib-osm-map-renderer PUBLIC
|
|
|
|
OSMScout::OSMScout
|
|
|
|
OSMScout::Map
|
|
|
|
OSMScout2
|
|
|
|
lunasvg
|
|
|
|
carla-server
|
2024-02-05 18:52:25 +08:00
|
|
|
)
|
2023-04-11 16:46:55 +08:00
|
|
|
|
2024-02-05 18:52:25 +08:00
|
|
|
target_include_directories (
|
2024-03-13 05:29:24 +08:00
|
|
|
lib-osm-map-renderer PUBLIC
|
|
|
|
${OSM_RENDERER_SOURCE_PATH}/include
|
2024-02-05 18:52:25 +08:00
|
|
|
)
|
|
|
|
|
2024-05-15 23:50:06 +08:00
|
|
|
carla_add_executable (
|
2024-03-13 05:29:24 +08:00
|
|
|
osm-world-renderer
|
2024-05-15 23:50:06 +08:00
|
|
|
"Build OSM-World-Renderer."
|
2024-03-13 05:29:24 +08:00
|
|
|
${OSM_RENDERER_SOURCE_PATH}/main.cpp
|
2024-02-05 18:52:25 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries (
|
2024-03-13 05:29:24 +08:00
|
|
|
osm-world-renderer PRIVATE
|
2024-02-05 18:52:25 +08:00
|
|
|
lib-osm-map-renderer
|
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_definitions (
|
2024-03-13 05:29:24 +08:00
|
|
|
osm-world-renderer PRIVATE
|
|
|
|
_USE_MATH_DEFINES
|
|
|
|
${CARLA_COMMON_DEFINITIONS}
|
2024-02-05 18:52:25 +08:00
|
|
|
)
|