miniupnpc/CMakeLists.txt: use project VERSION/DESCRIPTION/HOMEPAGE_URL
This commit is contained in:
parent
89ac1d6bf6
commit
ac5e908881
|
@ -1,11 +1,12 @@
|
|||
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
|
||||
|
||||
project (miniupnpc C)
|
||||
project (miniupnpc
|
||||
VERSION 2.2.3
|
||||
DESCRIPTION "UPnP IGD client lightweight library"
|
||||
HOMEPAGE_URL https://miniupnp.tuxfamily.org/
|
||||
LANGUAGES C)
|
||||
|
||||
set (MINIUPNPC_VERSION 2.2.3)
|
||||
set (MINIUPNPC_API_VERSION 17)
|
||||
set (MINIUPNPC_DESCRIPTION "UPnP IGD client lightweight library")
|
||||
set (MINIUPNPC_HOMEPAGE_URL https://miniupnp.tuxfamily.org/)
|
||||
|
||||
option (UPNPC_BUILD_STATIC "Build static library" TRUE)
|
||||
option (UPNPC_BUILD_SHARED "Build shared library" TRUE)
|
||||
|
@ -143,7 +144,7 @@ if (UPNPC_BUILD_SHARED)
|
|||
add_library (miniupnpc::miniupnpc ALIAS libminiupnpc-shared)
|
||||
set_target_properties (libminiupnpc-shared PROPERTIES EXPORT_NAME miniupnpc)
|
||||
set_target_properties (libminiupnpc-shared PROPERTIES OUTPUT_NAME "miniupnpc")
|
||||
set_target_properties (libminiupnpc-shared PROPERTIES VERSION ${MINIUPNPC_VERSION})
|
||||
set_target_properties (libminiupnpc-shared PROPERTIES VERSION ${PROJECT_VERSION})
|
||||
set_target_properties (libminiupnpc-shared PROPERTIES SOVERSION ${MINIUPNPC_API_VERSION})
|
||||
target_link_libraries (libminiupnpc-shared PRIVATE miniupnpc-private)
|
||||
target_compile_definitions(libminiupnpc-shared PRIVATE MINIUPNP_EXPORTS)
|
||||
|
|
|
@ -11,8 +11,8 @@ libdir="${prefix}/lib"
|
|||
includedir="${prefix}/include"
|
||||
|
||||
Name: @PROJECT_NAME@
|
||||
Description: @MINIUPNPC_DESCRIPTION@
|
||||
URL: @MINIUPNPC_HOMEPAGE_URL@
|
||||
Version: @MINIUPNPC_VERSION@
|
||||
Description: @PROJECT_DESCRIPTION@
|
||||
URL: @PROJECT_HOMEPAGE_URL@
|
||||
Version: @PROJECT_VERSION@
|
||||
Libs: -L"${libdir}" -lminiupnpc
|
||||
Cflags: -I"${includedir}"
|
||||
|
|
Loading…
Reference in New Issue