Commit 83cdbbe3 authored by Ghislain MARY's avatar Ghislain MARY

Deactivate components in package generation for the moment.

parent c0d0bbbf
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Toolbox package used by Belldonne Communications projects")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Toolbox package used by Belledonne Communications projects")
set(CPACK_PACKAGE_VENDOR "Belledonne Communications")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/../COPYING")
set(CPACK_PACKAGE_NAME ${PACKAGE})
......@@ -13,9 +13,9 @@ set(CPACK_COMPONENT_DEVEL_DEPENDS runtime)
set(CPACK_COMPONENT_RUNTIME_DISPLAY_NAME ${PACKAGE})
set(CPACK_COMPONENT_DEVEL_DISPLAY_NAME ${PACKAGE}-devel)
if ("${CPACK_GENERATOR}" STREQUAL "RPM")
if("${CPACK_GENERATOR}" STREQUAL "RPM")
set (CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${PACKAGE_VERSION})
endif ()
endif()
INCLUDE(CPack)
include(CPack)
......@@ -33,4 +33,5 @@ set(BCTOOLBOX_HEADER_FILES ${BCTOOLBOX_HEADER_FILES} PARENT_SCOPE)
install(FILES ${BCTOOLBOX_HEADER_FILES}
DESTINATION include/bctoolbox
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
COMPONENT devel)
)
......@@ -24,12 +24,12 @@
set(BCTOOLBOX_SOURCE_FILES
)
if (POLARSSL_FOUND)
if(POLARSSL_FOUND)
set(BCTOOLBOX_SOURCE_FILES
${BCTOOLBOX_SOURCE_FILES}
crypto_polarssl.c
)
elseif (MBEDTLS_FOUND)
elseif(MBEDTLS_FOUND)
set(BCTOOLBOX_SOURCE_FILES
${BCTOOLBOX_SOURCE_FILES}
crypto_mbedtls.c
......@@ -53,33 +53,19 @@ else()
endif()
if (POLARSSL_FOUND)
list(APPEND INCLUDES ${POLARSSL_INCLUDE_DIRS})
list(APPEND LIBS ${POLARSSL_LIBRARIES})
elseif (MBEDTLS_FOUND)
list(APPEND INCLUDES ${MBEDTLS_INCLUDE_DIRS})
list(APPEND LIBS ${MBEDTLS_LIBRARIES})
if(POLARSSL_FOUND)
target_include_directories(bctoolbox PUBLIC ${POLARSSL_INCLUDE_DIRS})
target_link_libraries(bctoolbox ${POLARSSL_LIBRARIES})
elseif(MBEDTLS_FOUND)
target_include_directories(bctoolbox PUBLIC ${MBEDTLS_INCLUDE_DIRS})
target_link_libraries(bctoolbox ${MBEDTLS_LIBRARIES})
endif()
target_include_directories(bctoolbox PUBLIC ${INCLUDES})
target_link_libraries(bctoolbox ${LIBS})
install(TARGETS bctoolbox EXPORT ${EXPORT_TARGETS_NAME}Targets
LIBRARY DESTINATION lib
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
COMPONENT runtime NAMELINK_SKIP
)
if(ENABLE_STATIC)
install(TARGETS bctoolbox EXPORT ${EXPORT_TARGETS_NAME}Targets
ARCHIVE DESTINATION lib
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
COMPONENT devel
)
endif()
install(TARGETS bctoolbox EXPORT ${EXPORT_TARGETS_NAME}Targets
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
COMPONENT devel NAMELINK_ONLY
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment