diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2025-06-29 21:20:28 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2025-06-29 21:20:28 -0400 |
| commit | 112a9c3306ccb6e09b770ac0c2576e31aa209850 (patch) | |
| tree | aa22f360e0b77e105515f9b3c3686f2c3eacdf14 | |
| parent | Add strlcat to append list (diff) | |
| download | cli-112a9c3306ccb6e09b770ac0c2576e31aa209850.zip | |
Update src files set
| -rw-r--r-- | CMakeLists.txt | 11 |
1 files 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}) |