forked from nicholas-leonard/dp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
31 lines (28 loc) · 874 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
CMAKE_POLICY(VERSION 2.6)
IF(LUAROCKS_PREFIX)
MESSAGE(STATUS "Installing Torch through Luarocks")
STRING(REGEX REPLACE "(.*)lib/luarocks/rocks.*" "\\1" CMAKE_INSTALL_PREFIX "${LUAROCKS_PREFIX}")
MESSAGE(STATUS "Prefix inferred from Luarocks: ${CMAKE_INSTALL_PREFIX}")
ENDIF()
FIND_PACKAGE(Torch REQUIRED)
SET(src)
FILE(GLOB luasrc *.lua)
ADD_SUBDIRECTORY(data)
ADD_SUBDIRECTORY(examples)
ADD_SUBDIRECTORY(feedback)
ADD_SUBDIRECTORY(hyper)
ADD_SUBDIRECTORY(loss)
ADD_SUBDIRECTORY(model)
ADD_SUBDIRECTORY(nn)
ADD_SUBDIRECTORY(observer)
ADD_SUBDIRECTORY(postgres)
ADD_SUBDIRECTORY(preprocess)
ADD_SUBDIRECTORY(sampler)
ADD_SUBDIRECTORY(propagator)
ADD_SUBDIRECTORY(scripts)
ADD_SUBDIRECTORY(test)
ADD_SUBDIRECTORY(utils)
ADD_SUBDIRECTORY(view)
ADD_SUBDIRECTORY(visitor)
ADD_TORCH_PACKAGE(dp "${src}" "${luasrc}")