Spaces:
Running
Running
cmake : add library versioning (#1352)
Browse filesCo-authored-by: Georgi Gerganov <[email protected]>
- CMakeLists.txt +7 -0
CMakeLists.txt
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
cmake_minimum_required (VERSION 3.5)
|
| 2 |
|
| 3 |
project(whisper.cpp VERSION 1.5.4)
|
|
|
|
| 4 |
|
| 5 |
# Add path to modules
|
| 6 |
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
|
|
@@ -542,6 +543,12 @@ add_library(${TARGET}
|
|
| 542 |
whisper.cpp
|
| 543 |
)
|
| 544 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 545 |
include(DefaultTargetOptions)
|
| 546 |
|
| 547 |
target_include_directories(${TARGET} PUBLIC
|
|
|
|
| 1 |
cmake_minimum_required (VERSION 3.5)
|
| 2 |
|
| 3 |
project(whisper.cpp VERSION 1.5.4)
|
| 4 |
+
set(SOVERSION 1)
|
| 5 |
|
| 6 |
# Add path to modules
|
| 7 |
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
|
|
|
|
| 543 |
whisper.cpp
|
| 544 |
)
|
| 545 |
|
| 546 |
+
# Set the version numbers
|
| 547 |
+
set_target_properties(whisper PROPERTIES
|
| 548 |
+
VERSION ${PROJECT_VERSION}
|
| 549 |
+
SOVERSION ${SOVERSION}
|
| 550 |
+
)
|
| 551 |
+
|
| 552 |
include(DefaultTargetOptions)
|
| 553 |
|
| 554 |
target_include_directories(${TARGET} PUBLIC
|