summaryrefslogtreecommitdiff
path: root/cmake/loop-darwin.cmake
blob: 91fb74e00e18e413ad3c4b670c85bc6f1eda1a5d (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-darwin STATIC
    platform/darwin/src/async_task.cpp
    platform/darwin/src/run_loop.cpp
    platform/darwin/src/timer.cpp
)

set_xcode_property(mbgl-loop-darwin GCC_SYMBOLS_PRIVATE_EXTERN YES)

target_compile_options(mbgl-loop-darwin
    PRIVATE -fPIC
    PRIVATE -fvisibility-inlines-hidden
)

target_include_directories(mbgl-loop-darwin
    PUBLIC include
    PRIVATE src
)

create_source_groups(mbgl-loop-darwin)
target_append_xcconfig(mbgl-loop-darwin)