@@ -21,12 +21,15 @@ if (BUILD_32)
21
21
set_target_properties (${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32" )
22
22
MESSAGE (STATUS "Excluding 64bit library paths from search." )
23
23
set_property (GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS OFF )
24
- set (ARCH i686 )
24
+ set (ARCH_RPM i686 )
25
+ set (ARCH_DEB i386 )
25
26
elseif (BUILD_64 )
26
27
set_target_properties (${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-m64" LINK_FLAGS "-m64" )
27
- set (ARCH amd64 )
28
+ set (ARCH_DEB amd64 )
29
+ set (ARCH_RM x86_64 )
28
30
else ()
29
- set (ARCH amd64 )
31
+ set (ARCH_DEB amd64 )
32
+ set (ARCH_RPM x86_64 )
30
33
endif ()
31
34
32
35
if (USE_MPIR )
@@ -56,7 +59,7 @@ if (WIN32)
56
59
endif ()
57
60
58
61
install (TARGETS bncsutil RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib )
59
- install (FILES src/bncsutil/bncsutil.h DESTINATION include /bncsutil )
62
+ install (FILES ${HEADERS} DESTINATION include /bncsutil )
60
63
61
64
#CPack configurtion
62
65
SET (CPACK_GENERATOR "DEB" "RPM" )
@@ -73,7 +76,7 @@ SET(CPACK_PACKAGE_VERSION_PATCH "${VERSION_PATCH}")
73
76
SET (CPACK_DEBIAN_PACKAGE_SECTION "libs" )
74
77
SET (CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/BNETDocs/bncsutil" )
75
78
SET (CPACK_DEBIAN_PACKAGE_MAINTAINER "imbacen@gmail.com" )
76
- SET (CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${ARCH } )
79
+ SET (CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${ARCH_DEB } )
77
80
SET (CPACK_DEBIAN_PACKAGE_DEPENDS "libgmp10" )
78
81
79
82
#RPM configuration
@@ -82,6 +85,6 @@ SET(CPACK_RPM_PACKAGE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
82
85
SET (CPACK_RPM_PACKAGE_GROUP "${PROJECT_NAME} " )
83
86
SET (CPACK_RPM_PACKAGE_URL "https://github.com/BNETDocs/bncsutil" )
84
87
SET (CPACK_RPM_PACKAGE_REQUIRES "gmp" )
85
- SET (CPACK_RPM_PACKAGE_ARCHITECTURE ${ARCH } )
88
+ SET (CPACK_RPM_PACKAGE_ARCHITECTURE ${ARCH_RPM } )
86
89
87
90
INCLUDE (CPack )
0 commit comments