diff options
author | Ronan Collobert <ronan@collobert.com> | 2012-01-25 17:55:20 +0400 |
---|---|---|
committer | Ronan Collobert <ronan@collobert.com> | 2012-01-25 17:55:20 +0400 |
commit | 053065ba239e3421d1b2cbec55e3f177a21d6829 (patch) | |
tree | 5e6f8cf06f429ce940541c829dbbd2ca11c55ca7 /CMakeLists.txt |
initial revamp of torch7 tree
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..158e56a --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,18 @@ +SET(src DiskFile.c File.c MemoryFile.c PipeFile.c Storage.c Tensor.c Timer.c utils.c init.c TensorOperator.c TensorMathWrap.c random.c) +SET(luasrc init.lua File.lua Tensor.lua TensorMath.lua CmdLine.lua Tester.lua torch.lua test/test.lua) + +# Necessary do generate wrapper +ADD_TORCH_WRAP(tensormathwrap TensorMathWrap.lua) +ADD_TORCH_WRAP(randomwrap random.lua) + +ADD_TORCH_PACKAGE(torch "${src}" "${luasrc}" "Basics") +ADD_TORCH_DOK(dok torch "Fundamentals" "Torch package" 1.1) + +TARGET_LINK_LIBRARIES(torch luaT TH) + +CONFIGURE_FILE(torch.in "${Torch_BINARY_DIR}/torch") +INSTALL(FILES "${Torch_BINARY_DIR}/torch" + DESTINATION "${Torch_INSTALL_BIN_SUBDIR}" + PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ + GROUP_EXECUTE GROUP_READ + WORLD_EXECUTE WORLD_READ) |