add INCLUDE_DIRECTORIES to subdirectories
This commit is contained in:
parent
80d64827e9
commit
a15a09aed4
2 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue