diff options
| author | yangwei <[email protected]> | 2020-09-07 14:09:28 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2020-09-07 14:09:28 +0800 |
| commit | 7827bb0408b0a51d4644ac2417fc0372de42bb37 (patch) | |
| tree | 794dcb552db82eff85a4d26f563960a677a31400 | |
| parent | 7e10ca27d5d25a32678543caab1edc70e22515bb (diff) | |
UPDATE:动态库增加soversionv1.1.2-release
| -rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9898979..a9c6062 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,9 @@ set(lib_name MESA_handle_logger) project (${lib_name}) +set(LIB_MAJOR_VERSION 1) +set(LIB_MINOR_VERSION 1) + set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) include(Version) @@ -37,6 +40,7 @@ file(GLOB SRC "src/*.cpp" ) + # Shared Library Output add_library(${lib_name}_shared SHARED ${SRC}) if(DEFINED MESA_SHARED_INSTALL_DIR) @@ -45,6 +49,10 @@ else() set_target_properties(${lib_name}_shared PROPERTIES OUTPUT_NAME ${lib_name}) endif() +set_target_properties(${lib_name}_shared PROPERTIES VERSION ${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}) +set_target_properties(${lib_name}_shared PROPERTIES SOVERSION ${LIB_MAJOR_VERSION}) + + # static Library Output add_library(${lib_name}_static STATIC ${SRC}) set_target_properties(${lib_name}_static PROPERTIES OUTPUT_NAME ${lib_name}) |
