diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-11-03 01:59:24 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-11-04 18:43:08 +0200 |
commit | e66cc2e583b8a56f1c9ace613c9bf6c1d0643712 (patch) | |
tree | 9e49031a64da303675cc545bc852163d4eb5abeb /CMakeLists.txt | |
parent | f376827ed21115c43347841e346f908697179fd0 (diff) | |
download | qtlocation-mapboxgl-e66cc2e583b8a56f1c9ace613c9bf6c1d0643712.tar.gz |
[linux] Added OSMesa headless backend
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c30081a24..c80e999a3f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,11 +14,16 @@ include(.mason/mason.cmake) option(WITH_CXX11ABI "Use cxx11abi mason packages" OFF) option(WITH_COVERAGE "Enable coverage reports" OFF) +option(WITH_OSMESA "Use OSMesa headless backend" OFF) if(WITH_CXX11ABI) set(MASON_CXXABI_SUFFIX -cxx11abi) endif() +if(WITH_OSMESA) + add_compile_options(-D__OSMESA__) +endif() + mason_use(geometry VERSION 0.8.0 HEADER_ONLY) mason_use(variant VERSION 1.1.0 HEADER_ONLY) mason_use(unique_resource VERSION dev HEADER_ONLY) |