This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is very much a work in progress.
- Loading branch information
Showing
82 changed files
with
2,002 additions
and
2,708 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
cmake_minimum_required(VERSION 3.2) | ||
project(mbgl LANGUAGES CXX C) | ||
include(cmake/npm.cmake) | ||
include(cmake/mason.cmake) | ||
include(cmake/mbgl.cmake) | ||
|
||
mason_use(geometry 0.8.0) | ||
mason_use(variant 1.1.0) | ||
mason_use(unique_resource dev) | ||
mason_use(rapidjson 1.0.2) | ||
mason_use(boost 1.60.0) | ||
mason_use(geojson 0.1.4) | ||
mason_use(geojsonvt 6.1.0) | ||
mason_use(earcut 0.11) | ||
mason_use(protozero 1.3.0) | ||
mason_use(gtest 1.7.0) | ||
mason_use(pixelmatch 0.9.0) | ||
|
||
set(CMAKE_CONFIGURATION_TYPES Debug Release) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Wextra -Wshadow -Wno-variadic-macros -Wno-unknown-pragmas") | ||
|
||
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/platform/${MBGL_PLATFORM}/config.cmake) | ||
message(ERROR "Can't find config.cmake file for platform ${MBGL_PLATFORM}") | ||
endif() | ||
|
||
include(platform/${MBGL_PLATFORM}/config.cmake) | ||
|
||
include(cmake/core-files.cmake) | ||
include(cmake/shaders.cmake) | ||
include(cmake/core.cmake) | ||
|
||
if(COMMAND mbgl_platform_test) | ||
include(cmake/test-files.cmake) | ||
include(cmake/test.cmake) | ||
endif() | ||
|
||
if(COMMAND mbgl_platform_glfw) | ||
include(cmake/glfw.cmake) | ||
endif() | ||
|
||
if(COMMAND mbgl_platform_render) | ||
include(cmake/render.cmake) | ||
endif() | ||
|
||
if(COMMAND mbgl_platform_offline) | ||
include(cmake/offline.cmake) | ||
endif() | ||
|
||
if(COMMAND mbgl_platform_node) | ||
include(cmake/node.cmake) | ||
endif() |
Oops, something went wrong.