增加RPM编译

This commit is contained in:
pengxuanzheng
2020-09-24 13:49:51 +08:00
parent caa5fe48df
commit ae00c1a891
8 changed files with 1474 additions and 2 deletions

6
cmake/Findtcmalloc.cmake Normal file
View File

@@ -0,0 +1,6 @@
find_path(TCMALLOC_INCLUDE_DIR tcmalloc.h ${PROJECT_SOURCE_DIR}/3rd/tcmalloc /usr/include /usr/include/gperftools /usr/local/include /usr/local/include/gperftools )
find_library(TCMALLOC_LIBRARY NAMES tcmalloc PATHS ${PROJECT_SOURCE_DIR}/3rd/tcmalloc /usr/lib /usr/lib/gperftools /usr/local/lib /usr/local/lib/gperftools)
if (TCMALLOC_INCLUDE_DIR AND TCMALLOC_LIBRARY)
set(tcmalloc_FOUND TRUE)
endif (TCMALLOC_INCLUDE_DIR AND TCMALLOC_LIBRARY)