]> git.lizzy.rs Git - getline.git/commitdiff
Add CMake config master
authorElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 25 Apr 2022 10:13:35 +0000 (12:13 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 25 Apr 2022 10:13:35 +0000 (12:13 +0200)
.gitignore
CMakeLists.txt [new file with mode: 0644]

index c6127b38c1aa25968a88db3940604d41529e4cf5..5a5f2d0a2d37e280c27c0e9c381b48a65bbd9fa5 100644 (file)
@@ -1,52 +1,12 @@
-# Prerequisites
-*.d
-
-# Object files
-*.o
-*.ko
-*.obj
-*.elf
-
-# Linker output
-*.ilk
-*.map
-*.exp
-
-# Precompiled Headers
-*.gch
-*.pch
-
-# Libraries
-*.lib
+CMakeLists.txt.user
+CMakeCache.txt
+CMakeFiles
+CMakeScripts
+Testing
+Makefile
+cmake_install.cmake
+install_manifest.txt
+compile_commands.json
+CTestTestfile.cmake
+_deps
 *.a
-*.la
-*.lo
-
-# Shared objects (inc. Windows DLLs)
-*.dll
-*.so
-*.so.*
-*.dylib
-
-# Executables
-*.exe
-*.out
-*.app
-*.i*86
-*.x86_64
-*.hex
-
-# Debug files
-*.dSYM/
-*.su
-*.idb
-*.pdb
-
-# Kernel Module Compile Results
-*.mod*
-*.cmd
-.tmp_versions/
-modules.order
-Module.symvers
-Mkfile.old
-dkms.conf
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}
+)