From 8194817305017008119714e8badc851db3bb0b0a Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Thu, 4 Jul 2024 10:37:02 -0400 Subject: Add cmake and clang format --- CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') 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}) -- cgit v1.2.3