# TextEditor - A syntax highlighting text editor for ImGui # Copyright (c) 2024-2026 Johan A. Goossens. All rights reserved. # # This work is licensed under the terms of the MIT license. # For a copy, see . cmake_minimum_required(VERSION 3.17 FATAL_ERROR) project(TextEditor VERSION 1.0 DESCRIPTION "TextEditor Example Program" LANGUAGES C CXX) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) add_subdirectory(deps) add_executable(example ../TextEditor.cpp ../TextEditor.h ../TextDiff.cpp ../TextDiff.h ../dtl.h editor.cpp dejavu.cpp main.cpp) target_link_libraries(example SDL3::SDL3 SDL3_Headers imguifd) target_compile_options(example PRIVATE $<$:-Werror -Wall -Wpedantic -Wextra> $<$:/W4 /WX>)