Files
MapLibreParticleLab/cmake/render.cmake
Thiago Marcos P. Santos 69960afb8d [build] Add build system for submodules
Vendorize the submodules and a simple CMake build
system for all them. The dependencies will inherit
compilation options for core.

The goal is to make Mapbox GL Core completely self
contained with a simple offline build.
2018-10-31 18:19:28 +02:00

42 lines
830 B
CMake

add_executable(mbgl-render
bin/render.cpp
)
target_include_directories(mbgl-render
PRIVATE platform/default
)
target_link_libraries(mbgl-render
PRIVATE mbgl-core
)
target_add_mason_package(mbgl-render PRIVATE boost)
target_add_mason_package(mbgl-render PRIVATE args)
mbgl_platform_render()
create_source_groups(mbgl-render)
initialize_xcode_cxx_build_settings(mbgl-render)
set_target_properties(mbgl-render PROPERTIES FOLDER "Executables")
xcode_create_scheme(
TARGET mbgl-render
OPTIONAL_ARGS
"--style=file.json"
"--lon=0"
"--lat=0"
"--zoom=0"
"--bearing=0"
"--pitch=0"
"--width=512"
"--height=512"
"--ratio=1"
"--token="
"--debug"
"--output=out.png"
"--cache=cache.sqlite"
"--assets=."
)