This repository was archived by the owner on Feb 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 2.8.4)
22set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR} /CMakeModules/" )
33project (signal-protocol-c)
44
5+ SET (SIGNAL_PROTOCOL_C_VERSION_MAJOR 2)
6+ SET (SIGNAL_PROTOCOL_C_VERSION_MINOR 3)
7+ SET (SIGNAL_PROTOCOL_C_VERSION_PATCH 1)
8+ SET (SIGNAL_PROTOCOL_C_VERSION ${SIGNAL_PROTOCOL_C_VERSION_MAJOR} .${SIGNAL_PROTOCOL_C_VERSION_MINOR} .${SIGNAL_PROTOCOL_C_VERSION_PATCH} )
9+
510SET (LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
611SET (LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX} /lib${LIB_SUFFIX} " CACHE STRING "Directory where lib will install" )
712SET (INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX} /include" CACHE PATH "The directory the headers are installed in" )
Original file line number Diff line number Diff line change @@ -73,6 +73,10 @@ add_library(signal-protocol-c
7373
7474if (BUILD_SHARED_LIBS )
7575 target_link_libraries (signal-protocol-c ${M_LIB} )
76+ set_target_properties (signal-protocol-c PROPERTIES
77+ VERSION ${SIGNAL_PROTOCOL_C_VERSION}
78+ SOVERSION ${SIGNAL_PROTOCOL_C_VERSION_MAJOR}
79+ )
7680endif ()
7781
7882INSTALL (
You can’t perform that action at this time.
0 commit comments