This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt.in
57 lines (50 loc) · 2.13 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
56
57
cmake_minimum_required (VERSION 3.5)
include (ExternalProject)
externalproject_add (
Boost URL
URL https://boostorg.jfrog.io/artifactory/main/release/1.71.0/source/boost_1_71_0.tar.bz2
URL_MD5 4cdf9b5c2dc01fb2b7b733d5af30e558
SOURCE_DIR "${CMAKE_BINARY_DIR}/src/boost"
BINARY_DIR "${CMAKE_BINARY_DIR}/libs/boost"
CONFIGURE_COMMAND cd <SOURCE_DIR> && ./bootstrap.sh
BUILD_COMMAND cd <SOURCE_DIR> && ./b2 --exec-prefix=<BINARY_DIR> --prefix=<BINARY_DIR> --with-system --with-coroutine install
INSTALL_COMMAND ""
UPDATE_COMMAND ""
)
# requires apt install autoconf-archive and autoconf
externalproject_add (
sdbusplus-project
GIT_REPOSITORY https://github.com/openbmc/sdbusplus.git
GIT_TAG afe80cf2e5dc4aefe3b041adeb0230e61929bf12
SOURCE_DIR "${CMAKE_BINARY_DIR}/src/sdbusplus"
BINARY_DIR "${CMAKE_BINARY_DIR}/libs/sdbusplus"
CONFIGURE_COMMAND cd <SOURCE_DIR> && ./bootstrap.sh &&
./configure --enable-transaction -exec-prefix=<BINARY_DIR> --prefix=<BINARY_DIR>
BUILD_COMMAND cd <SOURCE_DIR> && make -j libsdbusplus.la
INSTALL_COMMAND cd <SOURCE_DIR> && make install
UPDATE_COMMAND ""
)
externalproject_add (
phosphor-logging
GIT_REPOSITORY "https://github.com/openbmc/phosphor-logging.git"
SOURCE_DIR "${CMAKE_BINARY_DIR}/src/phosphor-logging"
BINARY_DIR "${CMAKE_BINARY_DIR}/libs/phosphor-logging"
CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND "" UPDATE_COMMAND ""
)
externalproject_add (
libmctp-intel GIT_REPOSITORY
"ssh://git-amr-2.devtools.intel.com:29418/openbmc-libmctp"
SOURCE_DIR "${CMAKE_BINARY_DIR}/src/libmctp"
INSTALL_DIR "${CMAKE_BINARY_DIR}/libs/libmctp"
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
UPDATE_COMMAND ""
)
externalproject_add (
gtest GIT_REPOSITORY "https://github.com/google/googletest.git"
GIT_TAG e3f0319d89f4cbf32993de595d984183b1a9fc57
SOURCE_DIR "${CMAKE_BINARY_DIR}/src/googletest"
INSTALL_DIR "${CMAKE_BINARY_DIR}/libs/googletest"
CMAKE_ARGS -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
UPDATE_COMMAND ""
)
ExternalProject_Add_StepDependencies(libmctp-intel build gtest)