add INCLUDE_DIRECTORIES to subdirectories

This commit is contained in:
Thomas Gstädtner 2013-03-03 03:06:20 +01:00 committed by Felix Fietkau
parent 80d64827e9
commit a15a09aed4
2 changed files with 2 additions and 0 deletions

View 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)

View 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)