forked from gitter-badger/bot7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
21 lines (19 loc) · 1.06 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
CMAKE_POLICY(VERSION 2.6)
IF(LUAROCKS_PREFIX)
MESSAGE(STATUS "Installing bot7 via 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)
FILE(GLOB luasrc *.lua)
SET(src "")
ADD_TORCH_PACKAGE(bot7 "${src}" "${luasrc}" "Bayesian Optimization for Torch7")
INSTALL(DIRECTORY models DESTINATION ${Torch_INSTALL_LUA_PATH_SUBDIR}/bot7)
INSTALL(DIRECTORY grids DESTINATION ${Torch_INSTALL_LUA_PATH_SUBDIR}/bot7)
INSTALL(DIRECTORY scores DESTINATION ${Torch_INSTALL_LUA_PATH_SUBDIR}/bot7)
INSTALL(DIRECTORY samplers DESTINATION ${Torch_INSTALL_LUA_PATH_SUBDIR}/bot7)
INSTALL(DIRECTORY bots DESTINATION ${Torch_INSTALL_LUA_PATH_SUBDIR}/bot7)
INSTALL(DIRECTORY utils DESTINATION ${Torch_INSTALL_LUA_PATH_SUBDIR}/bot7)
INSTALL(DIRECTORY nnTools DESTINATION ${Torch_INSTALL_LUA_PATH_SUBDIR}/bot7)
INSTALL(DIRECTORY benchmarks DESTINATION ${Torch_INSTALL_LUA_PATH_SUBDIR}/bot7)