Return the update of soname number
This commit is contained in:
parent
05295266b3
commit
d912a14f2a
|
@ -1,6 +1,6 @@
|
||||||
aux_source_directory(. SOURCESCODE)
|
aux_source_directory(. SOURCESCODE)
|
||||||
add_library(kysdk-config SHARED ${SOURCESCODE})
|
add_library(kysdk-config SHARED ${SOURCESCODE})
|
||||||
set_target_properties(kysdk-config PROPERTIES VERSION 2.0.0 SOVERSION 2)
|
set_target_properties(kysdk-config PROPERTIES VERSION 2.0.0 SOVERSION 1)
|
||||||
add_executable(kyconf-test-struct test/test_structlist.c)
|
add_executable(kyconf-test-struct test/test_structlist.c)
|
||||||
target_link_libraries(kyconf-test-struct kysdk-config kysdk-log pthread)
|
target_link_libraries(kyconf-test-struct kysdk-config kysdk-log pthread)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ project(kydiagnostics LANGUAGES CXX)
|
||||||
set(DIAGNOSTICS_TOP_DIR ${CMAKE_CURRENT_LIST_DIR})
|
set(DIAGNOSTICS_TOP_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||||
|
|
||||||
add_library(${PROJECT_NAME} SHARED)
|
add_library(${PROJECT_NAME} SHARED)
|
||||||
set_target_properties(kydiagnostics PROPERTIES VERSION 2.0.0 SOVERSION 2)
|
set_target_properties(kydiagnostics PROPERTIES VERSION 2.0.0 SOVERSION 1)
|
||||||
|
|
||||||
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -g)
|
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -g)
|
||||||
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_11)
|
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_11)
|
||||||
|
|
|
@ -7,7 +7,7 @@ link_directories(${GTK3_LIBRARY_DIRS})
|
||||||
add_definitions(${GTK3_CFLAGS_OTHER})
|
add_definitions(${GTK3_CFLAGS_OTHER})
|
||||||
|
|
||||||
add_library(kysdk-gsetting SHARED ${SOURCESCODE})
|
add_library(kysdk-gsetting SHARED ${SOURCESCODE})
|
||||||
set_target_properties(kysdk-gsetting PROPERTIES VERSION 2.0.0 SOVERSION 2)
|
set_target_properties(kysdk-gsetting PROPERTIES VERSION 2.0.0 SOVERSION 1)
|
||||||
|
|
||||||
add_executable(test-kygsetting test/test-gsetting.c)
|
add_executable(test-kygsetting test/test-gsetting.c)
|
||||||
target_link_libraries(kysdk-gsetting ${GTK3_LIBRARIES})
|
target_link_libraries(kysdk-gsetting ${GTK3_LIBRARIES})
|
||||||
|
|
|
@ -5,7 +5,7 @@ pkg_check_modules(DBus REQUIRED
|
||||||
dbus-1)
|
dbus-1)
|
||||||
include_directories(${DBus_INCLUDE_DIRS})
|
include_directories(${DBus_INCLUDE_DIRS})
|
||||||
add_library(kysdk-log SHARED ${SOURCESCODE})
|
add_library(kysdk-log SHARED ${SOURCESCODE})
|
||||||
set_target_properties(kysdk-log PROPERTIES VERSION 2.0.0 SOVERSION 2)
|
set_target_properties(kysdk-log PROPERTIES VERSION 2.0.0 SOVERSION 1)
|
||||||
add_executable(kylog-testlog test/test-log.c)
|
add_executable(kylog-testlog test/test-log.c)
|
||||||
add_executable(kylog-testsetdir test/test-setdir.c)
|
add_executable(kylog-testsetdir test/test-setdir.c)
|
||||||
add_executable(kylog-testpressure test/test-pressure.c)
|
add_executable(kylog-testpressure test/test-pressure.c)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
aux_source_directory(. SOURCESCODE)
|
aux_source_directory(. SOURCESCODE)
|
||||||
add_library(kysdk-timer SHARED ${SOURCESCODE})
|
add_library(kysdk-timer SHARED ${SOURCESCODE})
|
||||||
set_target_properties(kysdk-timer PROPERTIES VERSION 2.0.0 SOVERSION 2)
|
set_target_properties(kysdk-timer PROPERTIES VERSION 2.0.0 SOVERSION 1)
|
||||||
add_executable(test-kytimer test/test-kytimer.c)
|
add_executable(test-kytimer test/test-kytimer.c)
|
||||||
target_link_libraries(kysdk-timer pthread)
|
target_link_libraries(kysdk-timer pthread)
|
||||||
target_link_libraries(test-kytimer kysdk-timer)
|
target_link_libraries(test-kytimer kysdk-timer)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
aux_source_directory(. SOURCESCODE)
|
aux_source_directory(. SOURCESCODE)
|
||||||
add_library(kyutils SHARED ${SOURCESCODE})
|
add_library(kyutils SHARED ${SOURCESCODE})
|
||||||
set_target_properties(kyutils PROPERTIES VERSION 2.0.0 SOVERSION 2)
|
set_target_properties(kyutils PROPERTIES VERSION 2.0.0 SOVERSION 1)
|
||||||
include_directories(.)
|
include_directories(.)
|
||||||
install(TARGETS kyutils
|
install(TARGETS kyutils
|
||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
aux_source_directory(linklist/skip_linklist SOURCESCODESTRUCT)
|
aux_source_directory(linklist/skip_linklist SOURCESCODESTRUCT)
|
||||||
add_library(kydatastruct SHARED ${SOURCESCODESTRUCT})
|
add_library(kydatastruct SHARED ${SOURCESCODESTRUCT})
|
||||||
set_target_properties(kydatastruct PROPERTIES VERSION 2.0.0 SOVERSION 2)
|
set_target_properties(kydatastruct PROPERTIES VERSION 2.0.0 SOVERSION 1)
|
||||||
add_subdirectory(linklist)
|
add_subdirectory(linklist)
|
||||||
|
|
||||||
include_directories(linklist)
|
include_directories(linklist)
|
||||||
|
|
Loading…
Reference in New Issue