diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..982eb95 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,6 @@ +project(advanced_C_standard_library) +cmake_minimum_required(VERSION 3.0) +include_directories(src) +file(GLOB SOURCES "src/*.c") +add_executable(test.out ${SOURCES}) +install(TARGETS DESTINATION ${CMAKE_SOURCE_DIR}) diff --git a/README.md b/README.md index 6303c42..e725a68 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# advaned_C_standard_library +# advanced C standard library -A collection of C functions, I commonly use. \ No newline at end of file +A collection of C functions, I commonly use. diff --git a/build_and_run.sh b/build_and_run.sh new file mode 100755 index 0000000..b685e00 --- /dev/null +++ b/build_and_run.sh @@ -0,0 +1,3 @@ +#!/bin/sh +make +./build/test.out diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..8b385c4 --- /dev/null +++ b/src/main.c @@ -0,0 +1,4 @@ +#include +int main() { + printf("%s", "baum\n"); +}