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

60 lines
1.6 KiB
CMake
Raw Normal View History

# Copyright 2019-2020, Collabora, Ltd.
# 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/imgui/cimgui.cpp
../../../external/imgui/imgui_monado/imgui_monado.cpp
../../../external/imgui/imgui/cimgui.h
../../../external/imgui/imgui/imconfig.h
../../../external/imgui/imgui/imgui.cpp
../../../external/imgui/imgui/imgui.h
../../../external/imgui/imgui/imgui_demo.cpp
../../../external/imgui/imgui/imgui_draw.cpp
../../../external/imgui/imgui/imgui_impl_opengl3.cpp
../../../external/imgui/imgui/imgui_impl_opengl3.h
../../../external/imgui/imgui/imgui_internal.h
../../../external/imgui/imgui/imgui_widgets.cpp
../../../external/imgui/imgui/imstb_rectpack.h
../../../external/imgui/imgui/imstb_textedit.h
../../../external/imgui/imgui/imstb_truetype.h
)
2020-04-11 11:02:29 +00:00
add_library(st_gui STATIC
${GUI_SOURCE_FILES}
)
2020-04-11 11:02:29 +00:00
target_link_libraries(st_gui PRIVATE
xrt-external-glad
2020-04-11 11:02:29 +00:00
aux_util
)
target_include_directories(st_gui PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/..
${CMAKE_CURRENT_SOURCE_DIR}/../../../external/imgui
)
if(BUILD_WITH_SDL2)
add_library(imgui_impl_sdl STATIC
../../../external/imgui/imgui/cimgui_sdl.cpp
../../../external/imgui/imgui/imgui_impl_sdl.cpp
../../../external/imgui/imgui/imgui_impl_sdl.h
)
2020-04-11 11:02:29 +00:00
target_link_libraries(imgui_impl_sdl PRIVATE
${SDL2_LIBRARIES}
)
target_include_directories(imgui_impl_sdl
PRIVATE
2020-04-11 11:02:29 +00:00
${SDL2_INCLUDE_DIRS}
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/../../../external/imgui
2020-04-11 11:02:29 +00:00
)
endif()