diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-06-03 18:05:04 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-08-05 11:42:22 +0200 |
commit | 692fe1f3ffc8f4364b39c14aa7d90cec2ff5c0a6 (patch) | |
tree | 1d08af7d56e986dba2b548ff9b9a7e1a77c713ed /cmake/glfw.cmake | |
parent | e3ee55b28d0b230d054c9718f79a1f6d685cd62b (diff) | |
download | qtlocation-mapboxgl-692fe1f3ffc8f4364b39c14aa7d90cec2ff5c0a6.tar.gz |
[build] switch to CMake
This is very much a work in progress.
Diffstat (limited to 'cmake/glfw.cmake')
-rw-r--r-- | cmake/glfw.cmake | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/cmake/glfw.cmake b/cmake/glfw.cmake new file mode 100644 index 0000000000..67eac0934d --- /dev/null +++ b/cmake/glfw.cmake @@ -0,0 +1,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() |