Форматирование
This commit is contained in:
parent
f70c110106
commit
8a3f2eb74c
@ -10,16 +10,17 @@ function(add_common_library LIBNAME SOURCES)
|
|||||||
|
|
||||||
add_library(${LIBNAME}_shared SHARED $<TARGET_OBJECTS:${LIBNAME}>)
|
add_library(${LIBNAME}_shared SHARED $<TARGET_OBJECTS:${LIBNAME}>)
|
||||||
set_target_properties(${LIBNAME}_shared
|
set_target_properties(${LIBNAME}_shared
|
||||||
PROPERTIES VERSION ${PROJECT_VERSION}
|
PROPERTIES
|
||||||
|
VERSION ${PROJECT_VERSION}
|
||||||
SOVERSION ${PROJECT_VERSION_MAJOR}
|
SOVERSION ${PROJECT_VERSION_MAJOR}
|
||||||
OUTPUT_NAME ${LIBNAME}
|
OUTPUT_NAME ${LIBNAME}
|
||||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_INSTALL_LIBDIR})
|
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_INSTALL_LIBDIR})
|
||||||
|
|
||||||
add_library(${LIBNAME}_static STATIC $<TARGET_OBJECTS:${LIBNAME}>)
|
add_library(${LIBNAME}_static STATIC $<TARGET_OBJECTS:${LIBNAME}>)
|
||||||
set_target_properties(${LIBNAME}_static
|
set_target_properties(${LIBNAME}_static
|
||||||
PROPERTIES OUTPUT_NAME ${LIBNAME}
|
PROPERTIES
|
||||||
ARCHIVE_OUTPUT_DIRECTORY
|
OUTPUT_NAME ${LIBNAME}
|
||||||
${CMAKE_INSTALL_LIBDIR})
|
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_INSTALL_LIBDIR})
|
||||||
configure_file(${CMLIB_MODULE_DIR}/pc/lib.pc.in
|
configure_file(${CMLIB_MODULE_DIR}/pc/lib.pc.in
|
||||||
${CMAKE_BINARY_DIR}/${LIBNAME}.pc)
|
${CMAKE_BINARY_DIR}/${LIBNAME}.pc)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
Loading…
Reference in New Issue
Block a user