Made default_allocator a library

This commit is contained in:
Justin R. Cutler 2016-04-03 20:54:59 -04:00
parent 2777a2d44e
commit b35ac94640
1 changed files with 5 additions and 2 deletions

View File

@ -9,6 +9,9 @@ add_library (coroutine src/coroutine.c)
target_include_directories (coroutine PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries (coroutine LINK_PUBLIC allocation)
add_executable (test-coroutine test/coroutine.c 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)
target_include_directories (coroutine PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries (test-coroutine LINK_PUBLIC coroutine)
target_link_libraries (test-coroutine LINK_PUBLIC coroutine default_allocator)