Files
MapLibreParticleLab/cmake/glfw.cmake
Thiago Marcos P. Santos 71054c8b60 [glfw] Add static render test creator
Press F1 to create a render test for the current view.

The test will be created at the base folder (current if nothing is
provided) + /NNNN (the next free entry).
2019-12-09 16:09:16 +02:00

52 lines
1.2 KiB
CMake

add_executable(mbgl-glfw
platform/glfw/main.cpp
)
target_sources(mbgl-glfw
PRIVATE platform/glfw/glfw_view.hpp
PRIVATE platform/glfw/glfw_view.cpp
PRIVATE platform/glfw/glfw_backend.hpp
PRIVATE platform/glfw/glfw_gl_backend.hpp
PRIVATE platform/glfw/glfw_gl_backend.cpp
PRIVATE platform/glfw/glfw_renderer_frontend.hpp
PRIVATE platform/glfw/glfw_renderer_frontend.cpp
PRIVATE platform/glfw/settings_json.hpp
PRIVATE platform/glfw/settings_json.cpp
PRIVATE platform/glfw/test_writer.hpp
PRIVATE platform/glfw/test_writer.cpp
)
target_include_directories(mbgl-glfw
PRIVATE platform/default/include
)
target_link_libraries(mbgl-glfw
PRIVATE mbgl-core
PRIVATE glfw
PRIVATE mbgl-vendor-cheap-ruler-cpp
PRIVATE Mapbox::Base::Extras::args
)
mbgl_platform_glfw()
create_source_groups(mbgl-glfw)
set_target_properties(mbgl-glfw PROPERTIES FOLDER "Executables")
initialize_xcode_cxx_build_settings(mbgl-glfw)
xcode_create_scheme(
TARGET mbgl-glfw
OPTIONAL_ARGS
"--style=file.json"
"--cache=/tmp/mbgl-cache.db"
"--lon=0"
"--lat=0"
"--zoom=1"
"--bearing=0"
"--pitch=0"
"--fullscreen"
"--offline"
"--benchmark"
)