add INCLUDE_DIRECTORIES to subdirectories
authorThomas Gstädtner <thomas@gstaedtner.net>
Sun, 3 Mar 2013 02:06:20 +0000 (03:06 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 3 Mar 2013 02:43:22 +0000 (03:43 +0100)
examples/CMakeLists.txt
lua/CMakeLists.txt

index df7350c08515ea0c92c9a150817f40b07113a600..3d061616e44455d23ab2df760d33700091bd1f4d 100644 (file)
@@ -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)
index b4fa4d9e83c0f8ceeddb65265fb9802a6cc249b8..e4821bf7fa4ffe0b59164d50aa0dfb0008cab041 100644 (file)
@@ -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)