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

github.com/torch/cwrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@fb.com>2016-02-01 03:08:37 +0300
committerSoumith Chintala <soumith@fb.com>2016-02-01 03:08:37 +0300
commit381256dcca3a91cb80417e33345d51ed7fea6e9a (patch)
tree2eabcc2a8d46eedd95e07dd1f67e9319fc2520ff
parentb0a0625ebe21577dd1907002b29b60047d5052ef (diff)
add cmake for non-luarocks build
-rw-r--r--CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..0bfb9ab
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,11 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
+CMAKE_POLICY(VERSION 2.6)
+
+SET(src "")
+SET(luasrc
+ ${CMAKE_CURRENT_SOURCE_DIR}/init.lua
+ ${CMAKE_CURRENT_SOURCE_DIR}/cinterface.lua
+ ${CMAKE_CURRENT_SOURCE_DIR}/types.lua)
+
+INSTALL(FILES ${luasrc} DESTINATION ${LUADIR}/paths)
+