761 B、18行 生 Blame 履歴
1# TextEditor - A syntax highlighting text editor for ImGui
2# Copyright (c) 2024-2026 Johan A. Goossens. All rights reserved.
3#
4# This work is licensed under the terms of the MIT license.
5# For a copy, see <https://opensource.org/licenses/MIT>.
6
7FetchContent_Populate(imguifd QUIET GIT_REPOSITORY "https://github.com/goossens/ImGuiFileDialog")
8
9set(IMGUIFD_SOURCES
10 ${imguifd_SOURCE_DIR}/ImGuiFileDialog.h
11 ${imguifd_SOURCE_DIR}/ImGuiFileDialogConfig.h
12 ${imguifd_SOURCE_DIR}/ImGuiFileDialog.cpp)
13
14add_library(imguifd STATIC ${IMGUIFD_SOURCES})
15
16target_compile_definitions(imguifd PUBLIC CUSTOM_IMGUIFILEDIALOG_CONFIG="IgfdConfig.h")
17target_include_directories(imguifd PUBLIC ${imguifd_SOURCE_DIR} ${CMAKE_CURRENT_LIST_DIR})
18target_link_libraries(imguifd imgui)