1
0
mirror of https://github.com/jrcutler/threadless.io.git synced 2024-06-01 05:45:43 +00:00

Clean up include directory specification

This commit is contained in:
Justin R. Cutler 2016-04-03 21:19:14 -04:00
parent a4a50dadbc
commit 83675f0319

View File

@ -2,16 +2,14 @@ cmake_minimum_required(VERSION 3.5)
set(CMAKE_C_FLAGS "-Wall -Wextra -pedantic -Werror -std=c99") set(CMAKE_C_FLAGS "-Wall -Wextra -pedantic -Werror -std=c99")
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
add_library (allocation src/allocation.c) add_library (allocation src/allocation.c)
target_include_directories (allocation PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
add_library (coroutine src/coroutine.c) add_library (coroutine src/coroutine.c)
target_include_directories (coroutine PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries (coroutine LINK_PUBLIC allocation) target_link_libraries (coroutine LINK_PUBLIC allocation)
add_library (default_allocator src/default_allocator.c) 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) 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) target_link_libraries (test-coroutine LINK_PUBLIC coroutine default_allocator)