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.
16 lines
335 B
CMake
16 lines
335 B
CMake
add_library(rapidjson INTERFACE)
|
|
|
|
target_include_directories(rapidjson SYSTEM INTERFACE
|
|
${CMAKE_SOURCE_DIR}/vendor/rapidjson/include
|
|
)
|
|
|
|
target_compile_definitions(rapidjson INTERFACE
|
|
RAPIDJSON_HAS_STDSTRING=1
|
|
)
|
|
|
|
if(WIN32)
|
|
target_compile_definitions(rapidjson INTERFACE
|
|
RAPIDJSON_HAS_CXX11_RVALUE_REFS
|
|
)
|
|
endif()
|