monado/src/xrt/state_trackers/gui/CMakeLists.txt

50 lines
1 KiB
CMake
Raw Normal View History

2021-02-27 02:25:22 +00:00
# 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)
2021-11-11 21:36:54 +00:00
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
2021-02-27 02:25:22 +00:00
gui_scene_record.c
2020-10-14 19:12:33 +00:00
gui_scene_remote.c
gui_scene_video.c
2021-02-16 21:19:50 +00:00
gui_scene_tracking_overrides.c
2020-09-14 21:24:56 +00:00
gui_stb.c
gui_window_record.c
gui_window_record.h
)
2021-11-11 21:36:54 +00:00
target_link_libraries(st_gui PRIVATE xrt-external-stb aux_util aux_os aux_ogl)
target_include_directories(st_gui PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../../drivers)
2021-02-27 02:25:22 +00:00
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()
2020-10-14 19:12:33 +00:00
if(XRT_BUILD_DRIVER_REMOTE)
target_link_libraries(st_gui PRIVATE
drv_remote
)
endif()
if(XRT_HAVE_SDL2)
2021-11-11 21:36:54 +00:00
target_link_libraries(st_gui PUBLIC xrt-external-imgui-sdl2)
endif()