feat add SOVERSION for libphxrpc.so
All checks were successful
phxrpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 4m26s
phxrpc / build (Debug, aarch64-linux-gnu) (push) Successful in 5m33s
phxrpc / build (Debug, host.gcc) (push) Successful in 4m41s
phxrpc / build (Release, host.gcc) (push) Successful in 3m11s
phxrpc / build (Release, arm-linux-gnueabihf) (push) Successful in 5m38s
phxrpc / build (Release, mipsel-linux-gnu) (push) Successful in 6m41s
phxrpc / build (Release, aarch64-linux-gnu) (push) Successful in 3m22s
phxrpc / build (Debug, mipsel-linux-gnu) (push) Successful in 5m33s
All checks were successful
phxrpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 4m26s
phxrpc / build (Debug, aarch64-linux-gnu) (push) Successful in 5m33s
phxrpc / build (Debug, host.gcc) (push) Successful in 4m41s
phxrpc / build (Release, host.gcc) (push) Successful in 3m11s
phxrpc / build (Release, arm-linux-gnueabihf) (push) Successful in 5m38s
phxrpc / build (Release, mipsel-linux-gnu) (push) Successful in 6m41s
phxrpc / build (Release, aarch64-linux-gnu) (push) Successful in 3m22s
phxrpc / build (Debug, mipsel-linux-gnu) (push) Successful in 5m33s
This commit is contained in:
@@ -4,6 +4,7 @@ if(NOT CMAKE_CXX_STANDARD)
|
|||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
project(
|
project(
|
||||||
phxrpc
|
phxrpc
|
||||||
LANGUAGES C CXX
|
LANGUAGES C CXX
|
||||||
@@ -47,7 +48,7 @@ if(NOT protobuf_POPULATED)
|
|||||||
endif()
|
endif()
|
||||||
install(
|
install(
|
||||||
DIRECTORY ${protobuf_SOURCE_DIR}/src/google
|
DIRECTORY ${protobuf_SOURCE_DIR}/src/google
|
||||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
|
||||||
FILES_MATCHING
|
FILES_MATCHING
|
||||||
PATTERN "*.h"
|
PATTERN "*.h"
|
||||||
PATTERN "*.inc"
|
PATTERN "*.inc"
|
||||||
|
@@ -28,6 +28,13 @@ set(PHXRPC_SRCS
|
|||||||
"network/uthread_context_base.cpp"
|
"network/uthread_context_base.cpp"
|
||||||
"comm/assert.cpp")
|
"comm/assert.cpp")
|
||||||
add_library(phxrpc SHARED ${PHXRPC_SRCS})
|
add_library(phxrpc SHARED ${PHXRPC_SRCS})
|
||||||
|
set_target_properties(
|
||||||
|
phxrpc
|
||||||
|
PROPERTIES
|
||||||
|
VERSION
|
||||||
|
"${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}.${PROJECT_VERSION_TWEAK}"
|
||||||
|
SOVERSION "${PROJECT_VERSION_MAJOR}")
|
||||||
|
|
||||||
add_library(phxrpc_static STATIC ${PHXRPC_SRCS})
|
add_library(phxrpc_static STATIC ${PHXRPC_SRCS})
|
||||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
||||||
target_sources(phxrpx network/epoll-darwin.cpp)
|
target_sources(phxrpx network/epoll-darwin.cpp)
|
||||||
|
Reference in New Issue
Block a user