1
0
mirror of https://github.com/fumiama/base16384.git synced 2026-06-05 10:10:32 +08:00

shlib add version

This commit is contained in:
源文雨
2022-04-27 10:45:40 +08:00
parent eda754ec85
commit 40d6436280

View File

@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.0.0)
project(base16384 VERSION 2.0)
project(base16384 VERSION 2.2.0)
SET(CMAKE_BUILD_TYPE "Release")
add_executable(base16384 base16384.c)
@@ -16,9 +16,13 @@ ELSE()
add_library(libbase16384 SHARED base1432.c)
ENDIF()
target_link_libraries(base16384 libbase16384)
set_target_properties(libbase16384 PROPERTIES
OUTPUT_NAME base16384
VERSION 2.2.0
SOVERSION 2
)
set_target_properties(libbase16384 PROPERTIES OUTPUT_NAME base16384)
target_link_libraries(base16384 libbase16384)
INSTALL(TARGETS base16384 RUNTIME DESTINATION bin)
INSTALL(TARGETS libbase16384 LIBRARY DESTINATION lib)