-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdependencies.cmake
76 lines (71 loc) · 1.62 KB
/
dependencies.cmake
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
cmake_minimum_required(VERSION 3.9.0)
if (NOT polo_FOUND)
ExternalProject_Add(
zeromq
GIT_REPOSITORY
https://github.com/zeromq/libzmq
GIT_TAG
v4.2.5
CMAKE_ARGS
-D CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
-D CMAKE_BUILD_TYPE=Release
-D ENABLE_DRAFTS=OFF
-D ENABLE_CURVE=OFF
-D BUILD_TESTS=OFF
-D BUILD_SHARED=ON
-D BUILD_STATIC=ON
-D WITH_OPENPGM=OFF
-D WITH_DOC=OFF
-D LIBZMQ_WERROR=OFF
-D LIBZMQ_PEDANTIC=OFF
)
ExternalProject_Add(
openblas
GIT_REPOSITORY
https://github.com/xianyi/OpenBLAS
GIT_TAG
v0.3.3
CONFIGURE_COMMAND ""
BUILD_COMMAND
make NO_LAPACK=0 NO_CBLAS=1
BUILD_IN_SOURCE 1
INSTALL_COMMAND
make PREFIX=${CMAKE_INSTALL_PREFIX} install
)
ExternalProject_Add(
cereal
GIT_REPOSITORY
https://github.com/USCiLab/cereal
GIT_TAG
v1.2.2
CMAKE_ARGS
-D CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
-D JUST_INSTALL_CEREAL=ON
)
ExternalProject_Add(
googletest
GIT_REPOSITORY
https://github.com/google/googletest
GIT_TAG
release-1.8.1
CMAKE_ARGS
-D CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
-D CMAKE_BUILD_TYPE=Release
-D BUILD_SHARED_LIBS=ON
)
ExternalProject_Add(
polo
GIT_REPOSITORY
https://github.com/pologrp/polo
CMAKE_ARGS
-D CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
-D CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}
-D CMAKE_BUILD_TYPE=Release
-D BUILD_SHARED_LIBS=ON
DEPENDS
zeromq
openblas
cereal
googletest
)
endif()