From 83675f0319298081e1d232a96080bf61a37edb4e Mon Sep 17 00:00:00 2001 From: "Justin R. Cutler" Date: Sun, 3 Apr 2016 21:19:14 -0400 Subject: [PATCH] Clean up include directory specification --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 02bf3a3..1c34b80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)