CMake file

This commit is contained in:
2020-06-03 01:19:56 +02:00
parent d255fc169e
commit abc5c4209d
4 changed files with 15 additions and 2 deletions

6
CMakeLists.txt Normal file
View File

@ -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})

View File

@ -1,3 +1,3 @@
# advaned_C_standard_library
# advanced C standard library
A collection of C functions, I commonly use.
A collection of C functions, I commonly use.

3
build_and_run.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
make
./build/test.out

4
src/main.c Normal file
View File

@ -0,0 +1,4 @@
#include <stdio.h>
int main() {
printf("%s", "baum\n");
}