summaryrefslogtreecommitdiff
path: root/cmake/render.cmake
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-06-03 18:05:04 +0200
committerKonstantin Käfer <mail@kkaefer.com>2016-08-05 11:42:22 +0200
commit692fe1f3ffc8f4364b39c14aa7d90cec2ff5c0a6 (patch)
tree1d08af7d56e986dba2b548ff9b9a7e1a77c713ed /cmake/render.cmake
parente3ee55b28d0b230d054c9718f79a1f6d685cd62b (diff)
downloadqtlocation-mapboxgl-692fe1f3ffc8f4364b39c14aa7d90cec2ff5c0a6.tar.gz
[build] switch to CMake
This is very much a work in progress.
Diffstat (limited to 'cmake/render.cmake')
-rw-r--r--cmake/render.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmake/render.cmake b/cmake/render.cmake
new file mode 100644
index 0000000000..3cf79cc0cc
--- /dev/null
+++ b/cmake/render.cmake
@@ -0,0 +1,21 @@
+add_executable(mbgl-render
+ bin/render.cpp
+)
+
+target_compile_options(mbgl-render
+ PRIVATE -fvisibility-inlines-hidden
+)
+
+target_include_directories(mbgl-render
+ PRIVATE include
+ PRIVATE src # TODO: eliminate
+)
+
+target_link_libraries(mbgl-render
+ PRIVATE mbgl-core
+)
+
+target_add_mason_package(mbgl-render PRIVATE boost)
+target_add_mason_package(mbgl-render PRIVATE boost_libprogram_options)
+
+mbgl_platform_render()