diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-07-04 10:37:02 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-07-04 10:37:02 -0400 |
| commit | 8194817305017008119714e8badc851db3bb0b0a (patch) | |
| tree | e813a3719a3086a4b43b3784e73e47e1b6145f22 /CMakeLists.txt | |
| parent | Initial Commit (diff) | |
| download | cli-8194817305017008119714e8badc851db3bb0b0a.zip | |
Add cmake and clang format
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 19 |
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}) |