summaryrefslogtreecommitdiff
path: root/cmake/loop-uv.cmake
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-04-20 16:40:17 +0300
committerKonstantin Käfer <mail@kkaefer.com>2018-05-15 20:01:45 +0200
commitbdb4d9b274c99d0bd19950e00ed72fa348020d43 (patch)
tree3fe4f5ef523c971facb560646e029b855f7fd2a2 /cmake/loop-uv.cmake
parent98e310787e423c6511b67110d554ddd62260e47c (diff)
downloadqtlocation-mapboxgl-bdb4d9b274c99d0bd19950e00ed72fa348020d43.tar.gz
[node] allow building all ABIs at onceupstream/node
Diffstat (limited to 'cmake/loop-uv.cmake')
-rw-r--r--cmake/loop-uv.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmake/loop-uv.cmake b/cmake/loop-uv.cmake
new file mode 100644
index 0000000000..e1d3166b63
--- /dev/null
+++ b/cmake/loop-uv.cmake
@@ -0,0 +1,14 @@
+add_library(mbgl-loop-uv INTERFACE)
+
+target_sources(mbgl-loop-uv INTERFACE
+ ${CMAKE_CURRENT_SOURCE_DIR}/platform/default/async_task.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/platform/default/run_loop.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/platform/default/timer.cpp
+)
+
+target_include_directories(mbgl-loop-uv INTERFACE
+ ${CMAKE_CURRENT_SOURCE_DIR}/include
+ ${CMAKE_CURRENT_SOURCE_DIR}/src
+)
+
+create_source_groups(mbgl-loop-uv)