summaryrefslogtreecommitdiff
path: root/cmake/glfw.cmake
blob: 67eac0934d159500320150e0b921a452b8148656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
add_executable(mbgl-glfw
    bin/glfw.cpp
)

target_sources(mbgl-glfw
    PRIVATE include/mbgl/platform/default/glfw_view.hpp
    PRIVATE platform/default/glfw_view.cpp
    PRIVATE include/mbgl/platform/default/settings_json.hpp
    PRIVATE platform/default/settings_json.cpp
)

target_compile_options(mbgl-glfw
    PRIVATE -fvisibility-inlines-hidden
)

target_include_directories(mbgl-glfw
    PRIVATE include
    PRIVATE src # TODO: eliminate
)

target_link_libraries(mbgl-glfw
    PRIVATE mbgl-core
)

target_add_mason_package(mbgl-glfw PRIVATE glfw)

mbgl_platform_glfw()