PkgConfig configuration in cmake/backbone/PkgConfig.cmake
This commit is contained in:
parent
b6aadd0a76
commit
5cbdd55444
|
@ -1 +1 @@
|
|||
Subproject commit 90ad4ea0b20e1fae686cf046d48bdc9e1bda76a4
|
||||
Subproject commit a6437568a530ba24277e25c15c5e94e9accd8e02
|
|
@ -1,22 +1,15 @@
|
|||
# configure pkg-config file
|
||||
IF (WIN32)
|
||||
SET (PkgConfigPrefix "")
|
||||
ELSE ()
|
||||
SET (PkgConfigPrefix ${CMAKE_INSTALL_PREFIX})
|
||||
ENDIF ()
|
||||
SET (PkgConfigExecPrefix "\${prefix}")
|
||||
SET (PkgConfigLibDir "\${exec_prefix}/lib")
|
||||
SET (PkgConfigIncludeDir "\${prefix}/include")
|
||||
INCLUDE (PkgConfigCommon)
|
||||
|
||||
SET (PkgConfigName "${CMAKE_PROJECT_NAME}")
|
||||
SET (PkgConfigDescription "${PROJECT_DESCRIPTION}")
|
||||
SET (PkgConfigVersion "${MAJOR}.${MINOR}.${PATCH}")
|
||||
SET (PkgConfigLibs "-L\${libdir}")
|
||||
SET (PkgConfigLibs "${PkgConfigLibs} -l${PROJECT_LOWERCASE_NAME}-iface.so.${MAJOR}")
|
||||
SET (PkgConfigLibs "${PkgConfigLibs} -l${PROJECT_LOWERCASE_NAME}-host-iface.so.${MAJOR}")
|
||||
SET (PkgConfigLibs "${PkgConfigLibs} -l${PROJECT_LOWERCASE_NAME}-loader.so.${MAJOR}")
|
||||
SET (PkgConfigLibsPrivate "")
|
||||
SET (PkgConfigCflags "")
|
||||
SET (PkgConfigLibs "")
|
||||
IF (WIN32)
|
||||
SET (PkgConfigLibs "${PkgConfigLibs} -l${PROJECT_LOWERCASE_NAME}-iface-${MAJOR}")
|
||||
SET (PkgConfigLibs "${PkgConfigLibs} -l${PROJECT_LOWERCASE_NAME}-host-iface-${MAJOR}")
|
||||
SET (PkgConfigLibs "${PkgConfigLibs} -l${PROJECT_LOWERCASE_NAME}-loader-${MAJOR}")
|
||||
ELSE (WIN32)
|
||||
SET (PkgConfigLibs "${PkgConfigLibs} -l${PROJECT_LOWERCASE_NAME}-iface.so.${MAJOR}")
|
||||
SET (PkgConfigLibs "${PkgConfigLibs} -l${PROJECT_LOWERCASE_NAME}-host-iface.so.${MAJOR}")
|
||||
SET (PkgConfigLibs "${PkgConfigLibs} -l${PROJECT_LOWERCASE_NAME}-loader.so.${MAJOR}")
|
||||
ENDIF (WIN32)
|
||||
|
||||
CONFIGURE_FILE (
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/pkg-config.pc.in"
|
||||
|
|
Loading…
Reference in New Issue