-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
49 lines (39 loc) · 1.19 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.5 )
cmake_policy ( SET CMP0054 NEW )
project ( Starter )
include ( etc/build_defs.cmake )
include ( etc/build_type.cmake )
include ( etc/cflags.cmake )
include ( etc/clang_format.cmake )
include ( etc/clang_tidy.cmake )
include ( FindOpenSSL )
file ( GLOB SOURCE
src/util/*
src/net/*
src/remote/*
src/schedulers/*
src/simulator/*
src/nat/*
src/storage/*
)
include_directories ( src )
add_library( starter STATIC
${SOURCE}
)
set ( ALL_LIBS
starter
${OPENSSL_LIBRARIES}
)
add_executable ( coordinator src/frontend/coordinator.cc )
target_link_libraries( coordinator ${ALL_LIBS} )
add_executable ( lambdafunc src/frontend/lambdafunc.cc )
target_link_libraries( lambdafunc ${ALL_LIBS} )
add_executable ( storageserver src/frontend/storageserver.cc )
target_link_libraries( storageserver ${ALL_LIBS} )
# Flags for building static binaries for AWS Lambda
# set ( STATIC_LINK_FLAGS dl z unwind lzma -static -Wl,-allow-multiple-definition
# -Wl,--whole-archive -lpthread -Wl,--no-whole-archive
# -s )
# if ( CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES ASan )
# set( STATIC_LINK_FLAGS "" )
# endif()