aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt11
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})