From 112a9c3306ccb6e09b770ac0c2576e31aa209850 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 29 Jun 2025 21:20:28 -0400 Subject: Update src files set --- CMakeLists.txt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5526f95..fb15628 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,12 @@ if (CMAKE_C_COMPILER_ID STREQUAL "Clang") add_compile_options(-Wall -Wextra -ansi) endif() +set(SRC_FILES + src/linebuffer.c + src/word.c + src/main.c +) + include(CheckFunctionExists) check_function_exists(strlcat HAVE_STRLCAT) if(HAVE_STRLCAT) @@ -19,11 +25,6 @@ else() list(APPEND SRC_FILES src/strlcat.c) endif() -set(SRC_FILES - src/linebuffer.c - src/word.c - src/main.c -) include_directories(src) add_executable(justify ${SRC_FILES}) -- cgit v1.2.3