]> git.lizzy.rs Git - getline.git/blobdiff - CMakeLists.txt
Add CMake config
[getline.git] / CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ebb0316
--- /dev/null
@@ -0,0 +1,16 @@
+cmake_minimum_required(VERSION 3.14)
+project(Getline)
+
+add_compile_options(
+       -Wall
+       -Wextra
+       -Werror
+)
+
+add_library(getline
+       getline.c
+)
+
+target_include_directories(getline
+       PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
+)