CMakeLists.txt: Allow effectively specifying POLYCODE_ROOT_DIR

This commit is contained in:
Perttu Ahola 2014-09-19 19:29:31 +03:00
parent 928706b36e
commit 4e765c6d7b

View File

@ -18,7 +18,7 @@ include_directories("3rdparty/smallsha1")
# Polycode
#
SET(POLYCODE_ROOT_DIR "${buildat_SOURCE_DIR}/../polycode")
SET(POLYCODE_ROOT_DIR "${buildat_SOURCE_DIR}/../polycode" CACHE PATH "Path to Polycode source")
SET(POLYCODE_RELEASE_DIR ${POLYCODE_ROOT_DIR}/Release/${CMAKE_SYSTEM_NAME})
SET(POLYCODE_CMAKE_DIR ${POLYCODE_ROOT_DIR}/CMake)
SET(CMAKE_INSTALL_PREFIX ${POLYCODE_RELEASE_DIR}/Standalone/)
@ -35,7 +35,7 @@ SET(CMAKE_MODULE_PATH
)
INCLUDE(${POLYCODE_CMAKE_DIR}/PolycodeDependencies.cmake)
include_directories("../polycode/Bindings/Contents/LUA/Include")
include_directories("${POLYCODE_ROOT_DIR}/Bindings/Contents/LUA/Include")
#
# Buildat