2021-02-27 02:25:22 +00:00
|
|
|
# Copyright 2019-2021, Collabora, Ltd.
|
2019-10-09 20:53:21 +00:00
|
|
|
# SPDX-License-Identifier: BSL-1.0
|
|
|
|
|
2020-05-12 20:06:22 +00:00
|
|
|
# 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
|
2019-10-09 20:53:21 +00:00
|
|
|
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
|
2019-10-09 20:53:21 +00:00
|
|
|
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
|
2021-08-18 21:25:10 +00:00
|
|
|
gui_window_record.c
|
|
|
|
gui_window_record.h
|
2019-10-09 20:53:21 +00:00
|
|
|
)
|
|
|
|
|
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)
|
2020-03-03 23:24:39 +00:00
|
|
|
|
2021-02-27 02:25:22 +00:00
|
|
|
if(XRT_HAVE_GST)
|
|
|
|
target_link_libraries(st_gui PRIVATE
|
|
|
|
aux_gstreamer
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2021-06-10 19:31:42 +00:00
|
|
|
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()
|
|
|
|
|
2020-04-29 23:11:43 +00:00
|
|
|
if(XRT_HAVE_SDL2)
|
2021-11-11 21:36:54 +00:00
|
|
|
target_link_libraries(st_gui PUBLIC xrt-external-imgui-sdl2)
|
2020-03-03 23:24:39 +00:00
|
|
|
endif()
|