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

github.com/torch/xlua.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkoray kavukcuoglu <koray@kavukcuoglu.org>2011-09-02 03:57:29 +0400
committerkoray kavukcuoglu <koray@kavukcuoglu.org>2011-09-02 03:57:29 +0400
commit3afa52d7f72bc9c4a31bd2ca0e69e97c8d1583c3 (patch)
tree365ddd0ab6f6ef98e540cc6632a04e1e9bfc36d6 /CMakeLists.txt
parent136889d94d42e88de67a72b77c5ca855ceab0249 (diff)
compile/install using vanilla torch7 under dev directory
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9a0fe10..5448fde 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,12 +3,15 @@ cmake_minimum_required(VERSION 2.8)
IF(${CMAKE_PROJECT_NAME} STREQUAL "Torch")
SET(TORCH_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
+ SET(INSTALL_PREFIX /${Torch_INSTALL_LUA_PATH_SUBDIR})
+ SET(CINSTALL_PREFIX /${Torch_INSTALL_LUA_CPATH_SUBDIR})
ELSE(${CMAKE_PROJECT_NAME} STREQUAL "Torch")
string (REGEX REPLACE "(.*)lib/luarocks/rocks.*" "\\1" LUA_PREFIX "${CMAKE_INSTALL_PREFIX}" )
-
+ SET(INSTALL_PREFIX /lua )
+ SET(CINSTALL_PREFIX /lib)
ENDIF(${CMAKE_PROJECT_NAME} STREQUAL "Torch")
-install_files(/lua xlua.lua)
-install_files(/lua OptionParser.lua)
+install_files(${INSTALL_PREFIX} xlua.lua)
+install_files(${INSTALL_PREFIX} OptionParser.lua)