diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ea464c..8a8cf33 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,12 @@ cmake_minimum_required(VERSION 3.25) -project(sorting_station C) +project(C_homework C) +add_compile_options(-Wall -Wextra -pedantic) +# Libraries add_library(stack src/stack_and_queue/stack/stack.c) +# Executables and links with libraries +add_executable(hello_world src/hello_world/hello_world.c) + add_executable(sorting_station src/stack_and_queue/stack/sorting_station.c) target_link_libraries(sorting_station PRIVATE stack) -target_compile_options(sorting_station PRIVATE -Wall -Wextra -pedantic) diff --git a/src/hello_world/hello_world.c b/src/hello_world/hello_world.c new file mode 100644 index 0000000..88682ec --- /dev/null +++ b/src/hello_world/hello_world.c @@ -0,0 +1,8 @@ +#include + +int main() +{ + printf("Hello, World!\n"); + + return 0; +}