2020-03-03 23:24:39 +00:00
|
|
|
# Copyright 2019-2020, Collabora, Ltd.
|
2019-10-09 20:53:21 +00:00
|
|
|
# SPDX-License-Identifier: BSL-1.0
|
|
|
|
|
|
|
|
set(GUI_SOURCE_FILES
|
|
|
|
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_video.c
|
|
|
|
../../../external/imgui/cimgui.cpp
|
|
|
|
../../../external/imgui/cimgui.h
|
|
|
|
../../../external/imgui/imconfig.h
|
|
|
|
../../../external/imgui/imgui.cpp
|
|
|
|
../../../external/imgui/imgui.h
|
|
|
|
../../../external/imgui/imgui_demo.cpp
|
|
|
|
../../../external/imgui/imgui_draw.cpp
|
|
|
|
../../../external/imgui/imgui_impl_opengl3.cpp
|
|
|
|
../../../external/imgui/imgui_impl_opengl3.h
|
|
|
|
../../../external/imgui/imgui_internal.h
|
|
|
|
../../../external/imgui/imgui_widgets.cpp
|
|
|
|
../../../external/imgui/imstb_rectpack.h
|
|
|
|
../../../external/imgui/imstb_textedit.h
|
|
|
|
../../../external/imgui/imstb_truetype.h
|
|
|
|
)
|
|
|
|
|
2020-03-03 23:24:39 +00:00
|
|
|
add_library(st_gui STATIC ${GUI_SOURCE_FILES})
|
2019-10-09 20:53:21 +00:00
|
|
|
|
2020-03-03 23:24:39 +00:00
|
|
|
target_link_libraries(st_gui PRIVATE aux_util xrt-external-headers)
|
2019-10-09 20:53:21 +00:00
|
|
|
target_include_directories(st_gui
|
2020-03-03 23:24:39 +00:00
|
|
|
PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/..
|
2019-10-09 20:53:21 +00:00
|
|
|
)
|
2020-03-03 23:24:39 +00:00
|
|
|
|
|
|
|
if(BUILD_WITH_SDL2)
|
|
|
|
add_library(imgui_impl_sdl STATIC
|
|
|
|
../../../external/imgui/cimgui_sdl.cpp
|
|
|
|
../../../external/imgui/imgui_impl_sdl.cpp
|
|
|
|
../../../external/imgui/imgui_impl_sdl.h
|
|
|
|
)
|
|
|
|
target_link_libraries(imgui_impl_sdl PRIVATE ${SDL2_LIBRARIES} xrt-external-headers)
|
|
|
|
target_include_directories(imgui_impl_sdl PRIVATE ${SDL2_INCLUDE_DIRS})
|
|
|
|
endif()
|