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

github.com/torch/qttorch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Collobert <ronan@collobert.com>2013-10-03 21:04:29 +0400
committerRonan Collobert <ronan@collobert.com>2013-10-03 21:04:29 +0400
commitd87c34117e163c006f0ab4bb315748b85e381c98 (patch)
treec1934d8171bb2286522163ae84885bfcb20dca39 /CMakeLists.txt
exe can now be compiled in a standalone way
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..3e7c93f
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,21 @@
+# -*- cmake -*-
+
+IF(Torch_SOURCE_DIR)
+
+ INCLUDE_DIRECTORIES("${Torch_SOURCE_DIR}/lib/TH")
+ INCLUDE_DIRECTORIES("${Torch_SOURCE_DIR}/lib/luaT")
+ INCLUDE_DIRECTORIES("${Torch_BINARY_DIR}/lib/TH")
+ INCLUDE_DIRECTORIES(".")
+ INCLUDE(${QT_USE_FILE})
+
+ SET(qttorch_SRC qttorch.h qttorch.cpp)
+
+ MACRO_INSTALL_QTLUA_FILES(qttorch init.lua)
+
+ MACRO_ADD_QTLUA_MODULE(libqttorch ${qttorch_SRC})
+
+ TARGET_LINK_LIBRARIES(libqttorch luaT TH)
+
+# ADD_TORCH_DOK(dok qttorch "QT Interface" "Torch Tensor interface" 6.)
+
+ENDIF(Torch_SOURCE_DIR)