aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..f5724e8
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,19 @@
+cmake_minimum_required(VERSION 3.29)
+project(justify VERSION 0.1.0)
+
+set(CMAKE_C_STANDARD 11)
+set(CMAKE_C_STANDARD_REQUIRED True)
+
+set(CMAKE_C_COMPILER clang)
+set(CMAKE_CXX_COMPILER clang++)
+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_directories(src)
+add_executable(justify ${SRC_FILES})