-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
46 lines (32 loc) · 1.07 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
cmake_minimum_required(VERSION 2.8)
project (Torch)
set(CMAKE_CONFIGURATION_TYPES Debug Release)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Os")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG -g")
set(TORCH_HEADERS
include/torch/Util/singleton.hpp
include/torch/Util/exception.hpp
include/torch/util.hpp
include/torch/HTTP/headers.hpp
include/torch/HTTP/application.hpp
include/torch/HTTP/Response/response.hpp
include/torch/HTTP/request.hpp
include/torch/http.hpp
include/torch/log.hpp
include/torch/Sockets/socket.hpp
include/torch/Sockets/select.hpp
include/torch/sockets.hpp
)
set(TORCH_SOURCES
src/modules/Util/exception.cpp
src/modules/log.cpp
src/modules/HTTP/application.cpp
src/modules/HTTP/Response/response.cpp
src/modules/HTTP/request.cpp
src/modules/Sockets/socket.cpp
src/modules/Sockets/select.cpp
)
add_library(torch ${TORCH_SOURCES} ${TORCH_HEADERS})
include_directories(include)
link_directories(/usr/local/lib)
target_link_libraries(torch magic)