Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/image.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoray Kavukcuoglu <koray@kavukcuoglu.org>2011-09-22 00:46:12 +0400
committerKoray Kavukcuoglu <koray@kavukcuoglu.org>2011-09-22 00:46:12 +0400
commiteed62353ebdc248cb7f49bcb1d4c7b878da03ec1 (patch)
treec26e3ffea5751ebf8d59eec027ae7bf5f249ea91 /CMakeLists.txt
parent7b491f963a7997ead046fc3113d28c507ccd850c (diff)
CMake file should have the dependency to Lua libraries.
Add symmetric display in image.display.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aa50bbb..34842c6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,6 +8,8 @@ IF(${CMAKE_PROJECT_NAME} STREQUAL "Torch")
SET(INSTALL_PREFIX /${Torch_INSTALL_LUA_PATH_SUBDIR}/image)
SET(CINSTALL_PREFIX /${Torch_INSTALL_LUA_CPATH_SUBDIR})
+ INCLUDE_DIRECTORIES(${LUA_INCLUDE_DIR})
+ SET(LIBS ${TORCH_LIBRARIES} ${LUA_LIBRARIES})
ELSE(${CMAKE_PROJECT_NAME} STREQUAL "Torch")
# infer path for Torch7
string (REGEX REPLACE "(.*)lib/luarocks/rocks.*" "\\1" TORCH_PREFIX "${CMAKE_INSTALL_PREFIX}" )