summaryrefslogtreecommitdiff
path: root/cmake/render.cmake
diff options
context:
space:
mode:
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()