forked from ibm-openbmc/bmcweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt.in
55 lines (48 loc) · 2.33 KB
/
CMakeLists.txt.in
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
cmake_minimum_required (VERSION 3.5)
include (ExternalProject)
file (MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/prefix)
file (MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/prefix/include)
# requires apt install autoconf-archive and autoconf
externalproject_add (
sdbusplus-project PREFIX ${CMAKE_BINARY_DIR}/sdbusplus-project
GIT_REPOSITORY https://github.com/openbmc/sdbusplus.git GIT_TAG
c08cf5283b80a071d19506d9a462f6c69e1797f1 SOURCE_DIR
${CMAKE_BINARY_DIR}/sdbusplus-src BINARY_DIR
${CMAKE_BINARY_DIR}/sdbusplus-build CONFIGURE_COMMAND "" BUILD_COMMAND cd
${CMAKE_BINARY_DIR}/sdbusplus-src && ./bootstrap.sh && ./configure
--enable-transaction && make -j libsdbusplus.la INSTALL_COMMAND ""
LOG_DOWNLOAD ON
)
externalproject_add (
tinyxml2 GIT_REPOSITORY https://github.com/leethomason/tinyxml2.git GIT_TAG
8c8293ba8969a46947606a93ff0cb5a083aab47a CMAKE_ARGS SOURCE_DIR
"${CMAKE_BINARY_DIR}/tinyxml2-src" BINARY_DIR
"${CMAKE_BINARY_DIR}/tinyxml2-build" CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/prefix
)
externalproject_add (
gtest GIT_REPOSITORY "https://github.com/google/googletest.git" GIT_TAG
dfa853b63d17c787914b663b50c2095a0c5b706e CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/googletest-build SOURCE_DIR
"${CMAKE_BINARY_DIR}/googletest-src" BINARY_DIR
"${CMAKE_BINARY_DIR}/googletest-build" CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/prefix
)
externalproject_add (
Boost URL
https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz
URL_MD5 b50944c0c13f81ce2c006802a1186f5a SOURCE_DIR
"${CMAKE_BINARY_DIR}/boost-src" BINARY_DIR "${CMAKE_BINARY_DIR}/boost-build"
CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND mkdir -p
"${CMAKE_BINARY_DIR}/prefix/include/" && cp -R
${CMAKE_BINARY_DIR}/boost-src/boost ${CMAKE_BINARY_DIR}/prefix/include
)
externalproject_add (
nlohmann-json GIT_REPOSITORY "https://github.com/nlohmann/json.git" GIT_TAG
aafad2be1f3cd259a1e79d2f6fcf267d1ede9ec7 SOURCE_DIR
"${CMAKE_BINARY_DIR}/nlohmann-json-src" BINARY_DIR
"${CMAKE_BINARY_DIR}/nlohmann-json-build" CONFIGURE_COMMAND "" BUILD_COMMAND
"" INSTALL_COMMAND mkdir -p "${CMAKE_BINARY_DIR}/prefix/include/nlohmann" &&
cp -r "${CMAKE_BINARY_DIR}/nlohmann-json-src/include/nlohmann"
"${CMAKE_BINARY_DIR}/prefix/include"
)