File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
44
55include (opusfilePackageVersion)
66get_package_version(PACKAGE_VERSION PROJECT_VERSION)
7+ string (REPLACE "." ";" PROJECT_VERSION_LIST ${PROJECT_VERSION} )
8+ list (GET PROJECT_VERSION_LIST 0 PROJECT_VERSION_MAJOR)
9+ list (GET PROJECT_VERSION_LIST 1 PROJECT_VERSION_MINOR)
710
811project (opusfile
912 VERSION ${PROJECT_VERSION}
@@ -44,6 +47,8 @@ add_library(opusfile
4447add_library (opusfile::opusfile ALIAS opusfile)
4548set_target_properties (opusfile PROPERTIES
4649 PUBLIC_HEADER "${CMAKE_CURRENT_SOURCE_DIR} /include/opusfile.h"
50+ VERSION ${PROJECT_VERSION}
51+ SOVERSION ${PROJECT_VERSION_MAJOR}
4752)
4853target_include_directories (opusfile
4954 PRIVATE
@@ -134,8 +139,10 @@ if(NOT OP_DISABLE_HTTP)
134139 "${CMAKE_CURRENT_SOURCE_DIR} /src/winerrno.h"
135140 )
136141 endif ()
137- set_target_properties (opusfile PROPERTIES
142+ set_target_properties (opusurl PROPERTIES
138143 PUBLIC_HEADER "${CMAKE_CURRENT_SOURCE_DIR} /include/opusfile.h"
144+ VERSION ${PROJECT_VERSION}
145+ SOVERSION ${PROJECT_VERSION_MAJOR}
139146 )
140147 target_include_directories (opusurl
141148 PRIVATE
You can’t perform that action at this time.
0 commit comments