mirror of
https://github.com/jrcutler/threadless.io.git
synced 2024-07-07 10:35:49 +00:00
Clean up include directory specification
This commit is contained in:
parent
a4a50dadbc
commit
83675f0319
@ -2,16 +2,14 @@ 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)
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user