summaryrefslogtreecommitdiff
path: root/cmake/loop-darwin.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/loop-darwin.cmake')
-rw-r--r--cmake/loop-darwin.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/cmake/loop-darwin.cmake b/cmake/loop-darwin.cmake
new file mode 100644
index 0000000000..16bc62537c
--- /dev/null
+++ b/cmake/loop-darwin.cmake
@@ -0,0 +1,18 @@
+add_library(mbgl-loop STATIC
+ platform/darwin/src/async_task.cpp
+ platform/darwin/src/run_loop.cpp
+ platform/darwin/src/timer.cpp
+)
+
+target_compile_options(mbgl-loop
+ PRIVATE -fPIC
+ PRIVATE -fvisibility-inlines-hidden
+)
+
+target_include_directories(mbgl-loop
+ PUBLIC include
+ PRIVATE src
+)
+
+create_source_groups(mbgl-loop)
+target_append_xcconfig(mbgl-loop)