-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
209eafe
commit e47c629
Showing
4 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
if (POLICY CMP0091) | ||
cmake_policy(SET CMP0091 NEW) | ||
endif() | ||
project(myframe_deps VERSION 1.0.0) | ||
|
||
include(ExternalProject) | ||
|
||
set(DEPS_SOURCE_DIR ${CMAKE_SOURCE_DIR}/src) | ||
set(DEPS_DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/pkg) | ||
|
||
ExternalProject_Add( | ||
gflags | ||
URL https://github.com/gflags/gflags/archive/refs/tags/v2.2.2.tar.gz | ||
URL_MD5 1a865b93bacfa963201af3f75b7bd64c | ||
DOWNLOAD_NAME "gflags.tar.gz" | ||
PREFIX ${CMAKE_BINARY_DIR} | ||
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR} | ||
SOURCE_DIR "${DEPS_SOURCE_DIR}/gflags" | ||
UPDATE_COMMAND "" | ||
PATCH_COMMAND "" | ||
CMAKE_ARGS | ||
-DBUILD_SHARED_LIBS=ON | ||
-DCMAKE_BUILD_TYPE=Release | ||
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} | ||
) | ||
|
||
ExternalProject_Add( | ||
glog | ||
URL https://github.com/google/glog/archive/refs/tags/v0.6.0.tar.gz | ||
URL_MD5 c98a6068bc9b8ad9cebaca625ca73aa2 | ||
DOWNLOAD_NAME "glog.tar.gz" | ||
PREFIX ${CMAKE_BINARY_DIR} | ||
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR} | ||
SOURCE_DIR "${DEPS_SOURCE_DIR}/glog" | ||
UPDATE_COMMAND "" | ||
PATCH_COMMAND "" | ||
CMAKE_ARGS | ||
-DBUILD_SHARED_LIBS=ON | ||
-DCMAKE_BUILD_TYPE=Release | ||
-DWITH_PKGCONFIG=OFF | ||
-DWITH_GTEST=OFF | ||
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} | ||
-DCMAKE_PREFIX_PATH=${CMAKE_INSTALL_PREFIX} | ||
) | ||
ExternalProject_Add_StepDependencies(glog install gflags) | ||
|
||
ExternalProject_Add( | ||
jsoncpp | ||
URL https://github.com/open-source-parsers/jsoncpp/archive/refs/tags/1.9.5.tar.gz | ||
URL_MD5 d6c8c609f2162eff373db62b90a051c7 | ||
DOWNLOAD_NAME "jsoncpp.tar.gz" | ||
PREFIX ${CMAKE_BINARY_DIR} | ||
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR} | ||
SOURCE_DIR "${DEPS_SOURCE_DIR}/jsoncpp" | ||
UPDATE_COMMAND "" | ||
PATCH_COMMAND "" | ||
CMAKE_ARGS | ||
-DBUILD_SHARED_LIBS=ON | ||
-DBUILD_STATIC_LIBS=OFF | ||
-DBUILD_OBJECT_LIBS=OFF | ||
-DCMAKE_BUILD_TYPE=Release | ||
-DJSONCPP_WITH_TESTS=OFF | ||
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF | ||
-DJSONCPP_WITH_PKGCONFIG_SUPPORT=OFF | ||
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# 3rd | ||
该目录主要用于下载/构建/安装依赖包使用 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters