Skip to content

Commit

Permalink
Add CMake config
Browse files Browse the repository at this point in the history
  • Loading branch information
LizzyFleckenstein03 committed Apr 25, 2022
1 parent f63b39e commit 305c38b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 51 deletions.
62 changes: 11 additions & 51 deletions .gitignore
@@ -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
16 changes: 16 additions & 0 deletions CMakeLists.txt
@@ -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}
)

0 comments on commit 305c38b

Please sign in to comment.