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.
11 lines
293 B
CMake
11 lines
293 B
CMake
add_library(optional INTERFACE)
|
|
|
|
# This polyfill is really only needed for
|
|
# Windows. We need to be careful to not leak
|
|
# it into any of our public interfaces.
|
|
if(WIN32)
|
|
target_include_directories(optional SYSTEM INTERFACE
|
|
${CMAKE_SOURCE_DIR}/vendor/optional/include
|
|
)
|
|
endif()
|