-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
49 lines (39 loc) · 1.22 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
47
48
49
cmake_minimum_required (VERSION 2.8)
add_compile_options (-std=c++14)
project (Machine)
set (CMAKE_BUILD_TYPE Debug)
set (SOURCE_FILES
src/log.hpp
src/context.hpp
src/function.hpp
src/processor.hpp
src/server.hpp
src/db.hpp
src/db_tests.hpp
src/sql.hpp
src/common.hpp
src/hash.hpp
src/hash_tests.hpp
src/cache.hpp
src/cache_key.hpp
src/cache_key_tests.hpp
src/perl.hpp
src/main.cpp)
link_libraries (pthread memcached crypto++)
find_package (Boost COMPONENTS system REQUIRED)
include_directories (${Boost_INCLUDE_DIRS})
link_directories (lib/tbb/lib)
include_directories (lib/tbb/include)
link_directories (lib/mysql/lib)
include_directories (lib/mysql/include)
include_directories (lib/spdlog/include)
include_directories (lib/json/include)
include_directories (lib/catch/include)
include_directories (perl-bridge/include)
add_subdirectory (perl-bridge)
add_executable (Machine ${SOURCE_FILES})
target_link_libraries (Machine perl-bridge)
target_link_libraries (Machine ${Boost_SYSTEM_LIBRARY})
target_link_libraries (Machine tbb)
target_link_libraries (Machine mysqlcppconn)
add_executable (Test src/test.cpp)