summaryrefslogtreecommitdiff
path: root/cmake/loop-darwin.cmake
blob: 7884c80a693c7c22b435987f79565a4e03ce3d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
add_library(mbgl-loop STATIC
    platform/darwin/src/async_task.cpp
    platform/darwin/src/run_loop.cpp
    platform/darwin/src/timer.cpp
)

set_xcode_property(mbgl-loop GCC_SYMBOLS_PRIVATE_EXTERN YES)

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)