| 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 | |
| 7 | FetchContent_Populate(imguifd QUIET GIT_REPOSITORY "https://github.com/goossens/ImGuiFileDialog") |
| 8 | |
| 9 | set(IMGUIFD_SOURCES |
| 10 | ${imguifd_SOURCE_DIR}/ImGuiFileDialog.h |
| 11 | ${imguifd_SOURCE_DIR}/ImGuiFileDialogConfig.h |
| 12 | ${imguifd_SOURCE_DIR}/ImGuiFileDialog.cpp) |
| 13 | |
| 14 | add_library(imguifd STATIC ${IMGUIFD_SOURCES}) |
| 15 | |
| 16 | target_compile_definitions(imguifd PUBLIC CUSTOM_IMGUIFILEDIALOG_CONFIG="IgfdConfig.h") |
| 17 | target_include_directories(imguifd PUBLIC ${imguifd_SOURCE_DIR} ${CMAKE_CURRENT_LIST_DIR}) |
| 18 | target_link_libraries(imguifd imgui) |