移除无关文件

1.移除.so和.a文件
2.移除test文件
This commit is contained in:
yangwei
2019-05-07 09:49:50 +08:00
parent e7bb830c84
commit 940c262b48
5 changed files with 9 additions and 4 deletions

View File

@@ -21,12 +21,14 @@ set(CPACK_RPM_PACKAGE_AUTOREQPROV "no")
set(CPACK_RPM_PACKAGE_RELEASE_DIST on)
set(CPACK_RPM_DEBUGINFO_PACKAGE on)
set(CPACK_BUILD_SOURCE_DIRS "${CMAKE_SOURCE_DIR}")
# Must uninstall the debug package before install release package
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CPACK_RPM_PACKAGE_CONFLICTS "${lib_name}-debug")
else()
set(CPACK_RPM_PACKAGE_CONFLICTS ${lib_name})
set(CPACK_STRIP_FILES TRUE)
# set(CPACK_STRIP_FILES TRUE)
endif()
include(CPack)