diff options
| author | fengweihao <[email protected]> | 2020-09-23 16:05:37 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2020-09-23 16:06:51 +0800 |
| commit | f1051e77b472e918c3ce1f90e477255442639ebc (patch) | |
| tree | 09e3f23c4aadcfc25e01e563b68525a91592af1c /vendor | |
| parent | 87fcacf83b40028adb4c8cfa27d5097583ba4381 (diff) | |
certstore上传yum仓库
开启tcmalloc
Diffstat (limited to 'vendor')
| -rw-r--r-- | vendor/CMakeLists.txt | 16 | ||||
| -rw-r--r-- | vendor/gperftools-2.7.tar.gz | bin | 0 -> 1523562 bytes |
2 files changed, 16 insertions, 0 deletions
diff --git a/vendor/CMakeLists.txt b/vendor/CMakeLists.txt index 4a60137..f23e99a 100644 --- a/vendor/CMakeLists.txt +++ b/vendor/CMakeLists.txt @@ -99,6 +99,22 @@ add_dependencies(gmock googletest) set_property(TARGET gmock PROPERTY IMPORTED_LOCATION ${INSTALL_DIR}/lib/libgmock.a) set_property(TARGET gmock PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include) +### gperftools +ExternalProject_Add(gperftools + PREFIX gperftools + URL ${CMAKE_CURRENT_SOURCE_DIR}/gperftools-2.7.tar.gz + URL_MD5 c6a852a817e9160c79bdb2d3101b4601 + CONFIGURE_COMMAND ./configure --prefix=<INSTALL_DIR> --disable-shared + BUILD_IN_SOURCE 1) + +ExternalProject_Get_Property(gperftools INSTALL_DIR) +file(MAKE_DIRECTORY ${INSTALL_DIR}/include) + +add_library(gperftools-static STATIC IMPORTED GLOBAL) +add_dependencies(gperftools-static gperftools) +set_property(TARGET gperftools-static PROPERTY IMPORTED_LOCATION ${INSTALL_DIR}/lib/libtcmalloc.a) +set_property(TARGET gperftools-static PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include) + ### MESA Framework # Consider the MESA Framework is installed in the system. We declare a imported target instead of # ExternalProject target. we may retrive the MESAFramework source code from git.mesalab.cn and diff --git a/vendor/gperftools-2.7.tar.gz b/vendor/gperftools-2.7.tar.gz Binary files differnew file mode 100644 index 0000000..e0a82a2 --- /dev/null +++ b/vendor/gperftools-2.7.tar.gz |
