blob: 627b6efe87b0c3f427a85deee0bbe40f588cb8ee [file] [log] [blame]
Ed Tanous55c7b7a2018-05-22 15:27:24 -07001cmake_minimum_required (VERSION 3.5)
Ed tanous7d95f5f2018-03-23 00:19:20 -07002
Ed Tanous55c7b7a2018-05-22 15:27:24 -07003include (ExternalProject)
Ed tanous7d95f5f2018-03-23 00:19:20 -07004
Ed Tanous55c7b7a2018-05-22 15:27:24 -07005file (MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/prefix)
6file (MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/prefix/include)
Ed Tanousaa2e59c2018-04-12 12:17:20 -07007
Ed Tanous55c7b7a2018-05-22 15:27:24 -07008externalproject_add (sdbusplus GIT_REPOSITORY
9 ssh://git-amr-2.devtools.intel.com:29418/openbmc-sdbusplus
10 GIT_TAG ce4a3cbfe89d1a30e982899bc336029f730f394e
11 SOURCE_DIR "${CMAKE_BINARY_DIR}/sdbusplus-src" BINARY_DIR
12 "${CMAKE_BINARY_DIR}/sdbusplus-build" CMAKE_ARGS
13 -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/prefix
14 CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND cp
15 -r "${CMAKE_BINARY_DIR}/sdbusplus-src/sdbusplus"
16 "${CMAKE_BINARY_DIR}/prefix/include")
Ed Tanousaa2e59c2018-04-12 12:17:20 -070017
Ed Tanous55c7b7a2018-05-22 15:27:24 -070018externalproject_add (tinyxml2 GIT_REPOSITORY
19 https://github.com/leethomason/tinyxml2.git GIT_TAG
20 8c8293ba8969a46947606a93ff0cb5a083aab47a CMAKE_ARGS
21 SOURCE_DIR "${CMAKE_BINARY_DIR}/tinyxml2-src" BINARY_DIR
22 "${CMAKE_BINARY_DIR}/tinyxml2-build" CMAKE_ARGS
23 -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/prefix)
Ed Tanousaa2e59c2018-04-12 12:17:20 -070024
Ed Tanous55c7b7a2018-05-22 15:27:24 -070025externalproject_add (gtest GIT_REPOSITORY
26 "https://github.com/google/googletest.git" GIT_TAG
27 dfa853b63d17c787914b663b50c2095a0c5b706e CMAKE_ARGS
28 -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/googletest-build
29 SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-src" BINARY_DIR
30 "${CMAKE_BINARY_DIR}/googletest-build" CMAKE_ARGS
31 -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/prefix)
Ed tanous7d95f5f2018-03-23 00:19:20 -070032
Ed Tanous55c7b7a2018-05-22 15:27:24 -070033externalproject_add (
34 Boost URL
35 https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz
36 URL_MD5 d275cd85b00022313c171f602db59fc5 SOURCE_DIR
37 "${CMAKE_BINARY_DIR}/boost-src" BINARY_DIR
38 "${CMAKE_BINARY_DIR}/boost-build" CONFIGURE_COMMAND "" BUILD_COMMAND ""
39 INSTALL_COMMAND mkdir -p "${CMAKE_BINARY_DIR}/prefix/include/" && cp -R
40 ${CMAKE_BINARY_DIR}/boost-src/boost ${CMAKE_BINARY_DIR}/prefix/include
Ed Tanousd425c6f2018-05-16 10:20:11 -070041)
42
43ExternalProject_Add(
44 nlohmann-json
45 GIT_REPOSITORY
46 "https://github.com/nlohmann/json.git"
47 GIT_TAG
48 d2dd27dc3b8472dbaa7d66f83619b3ebcd9185fe
49 SOURCE_DIR "${CMAKE_BINARY_DIR}/nlohmann-json-src"
50 BINARY_DIR "${CMAKE_BINARY_DIR}/nlohmann-json-build"
51 CONFIGURE_COMMAND ""
52 BUILD_COMMAND ""
53 INSTALL_COMMAND mkdir -p "${CMAKE_BINARY_DIR}/prefix/include/nlohmann" &&
54 cp -r "${CMAKE_BINARY_DIR}/nlohmann-json-src/include/nlohmann"
55 "${CMAKE_BINARY_DIR}/prefix/include"
56
57)