From a15a09aed4f72424e5533375cb8de0763fb2ea31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Gst=C3=A4dtner?= Date: Sun, 3 Mar 2013 03:06:20 +0100 Subject: [PATCH] add INCLUDE_DIRECTORIES to subdirectories --- examples/CMakeLists.txt | 1 + lua/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index df7350c..3d06161 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,6 +1,7 @@ cmake_minimum_required(VERSION 2.6) ADD_DEFINITIONS(-I..) +INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..) IF (BUILD_EXAMPLES) ADD_EXECUTABLE(server server.c) diff --git a/lua/CMakeLists.txt b/lua/CMakeLists.txt index b4fa4d9..e4821bf 100644 --- a/lua/CMakeLists.txt +++ b/lua/CMakeLists.txt @@ -16,6 +16,7 @@ IF(NOT LUA_CFLAGS) ENDIF() ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -I.. ${LUA_CFLAGS}) +INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..) LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..) IF(APPLE) -- 2.25.1