cmake_minimum_required(VERSION 3.5)

set(CMAKE_C_FLAGS "-Wall -Wextra -pedantic -Werror -std=c99")

add_library (allocation src/allocation.c)
target_include_directories (allocation PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

add_library (coroutine src/coroutine.c)
target_include_directories (coroutine PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries (coroutine LINK_PUBLIC allocation)

add_library (default_allocator src/default_allocator.c)
target_include_directories (default_allocator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

add_executable (test-coroutine test/coroutine.c)
target_include_directories (coroutine PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries (test-coroutine LINK_PUBLIC coroutine default_allocator)

cmake_minimum_required(VERSION 3.5)

set(CMAKE_C_FLAGS "-Wall -Wextra -pedantic -Werror -std=c99")

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

add_library (allocation src/allocation.c)

add_library (coroutine src/coroutine.c)
target_link_libraries (coroutine LINK_PUBLIC allocation)

add_library (default_allocator src/default_allocator.c)

add_executable (test-coroutine test/coroutine.c)
target_link_libraries (test-coroutine LINK_PUBLIC coroutine default_allocator)

Clean up include directory specification
Clean up include directory specification
