mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-23 23:21:46 +00:00
cc4007a69e
We now have a cmake-format config file. We no longer use list variables for sources, instead using target_sources when we need to add, in accordance with current best practice. (This makes it a lot easier to edit too.) There's no more include_directories(), add_definitions(), or other gently-deprecated directory-scoped commands, nor any CMake scripts that include a parent directory reference (named targets instead)
53 lines
1 KiB
CMake
53 lines
1 KiB
CMake
# Copyright 2019-2021, Collabora, Ltd.
|
|
# SPDX-License-Identifier: BSL-1.0
|
|
|
|
# c-imgui doesn't do well with IPO - lots of warnings.
|
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF)
|
|
|
|
add_library(
|
|
st_gui STATIC
|
|
gui_common.h
|
|
gui_imgui.h
|
|
gui_ogl.c
|
|
gui_prober.c
|
|
gui_scene.cpp
|
|
gui_scene_calibrate.c
|
|
gui_scene_debug.c
|
|
gui_scene_main_menu.c
|
|
gui_scene_record.c
|
|
gui_scene_remote.c
|
|
gui_scene_video.c
|
|
gui_scene_tracking_overrides.c
|
|
gui_stb.c
|
|
gui_window_record.c
|
|
gui_window_record.h
|
|
)
|
|
|
|
target_link_libraries(
|
|
st_gui
|
|
PRIVATE
|
|
xrt-external-stb
|
|
aux_util
|
|
aux_os
|
|
aux_ogl
|
|
drv_includes
|
|
xrt-external-imgui
|
|
)
|
|
target_include_directories(st_gui INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/..)
|
|
|
|
if(XRT_HAVE_GST)
|
|
target_link_libraries(st_gui PRIVATE aux_gstreamer)
|
|
endif()
|
|
|
|
if(XRT_BUILD_DRIVER_DEPTHAI)
|
|
target_link_libraries(st_gui PRIVATE drv_depthai)
|
|
endif()
|
|
|
|
if(XRT_BUILD_DRIVER_REMOTE)
|
|
target_link_libraries(st_gui PRIVATE drv_remote)
|
|
endif()
|
|
|
|
if(XRT_HAVE_SDL2)
|
|
target_link_libraries(st_gui PUBLIC xrt-external-imgui-sdl2)
|
|
endif()
|