mirror of
https://github.com/jrcutler/threadless.io.git
synced 2024-06-13 09:45:42 +00:00
11 lines
415 B
CMake
11 lines
415 B
CMake
|
cmake_minimum_required(VERSION 3.5)
|
||
|
|
||
|
set(CMAKE_C_FLAGS "-Wall -Wextra -pedantic -Werror -std=c99")
|
||
|
|
||
|
add_library (coroutine lib/coroutine.c)
|
||
|
target_include_directories (coroutine PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||
|
|
||
|
add_executable (test-coroutine test/coroutine.c)
|
||
|
target_include_directories (coroutine PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||
|
target_link_libraries (test-coroutine LINK_PUBLIC coroutine)
|