aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-07-04 10:37:02 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2024-07-04 10:37:02 -0400
commit8194817305017008119714e8badc851db3bb0b0a (patch)
treee813a3719a3086a4b43b3784e73e47e1b6145f22 /CMakeLists.txt
parentInitial Commit (diff)
downloadcli-8194817305017008119714e8badc851db3bb0b0a.zip
Add cmake and clang format
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})