CMake file
This commit is contained in:
6
CMakeLists.txt
Normal file
6
CMakeLists.txt
Normal 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})
|
||||||
@ -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
3
build_and_run.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
make
|
||||||
|
./build/test.out
|
||||||
4
src/main.c
Normal file
4
src/main.c
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
int main() {
|
||||||
|
printf("%s", "baum\n");
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user