Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
8 changes: 8 additions & 0 deletions src/hello_world/hello_world.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include <stdio.h>

int main()
{
printf("Hello, World!\n");

return 0;
}