From b35ac946404298bf7012f4873a50ad30cf93afa6 Mon Sep 17 00:00:00 2001 From: "Justin R. Cutler" Date: Sun, 3 Apr 2016 20:54:59 -0400 Subject: [PATCH] Made default_allocator a library --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f8e99f..02bf3a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)