2015-10-19 12:13:02 +03:00
|
|
|
INCLUDE (PkgConfigCommonRules)
|
2014-09-19 11:04:31 +04:00
|
|
|
|
2015-10-12 20:02:03 +03:00
|
|
|
SET (PkgConfigLibs "-L\${libdir}")
|
2015-10-12 14:42:14 +03:00
|
|
|
IF (WIN32)
|
|
|
|
SET (PkgConfigLibs "${PkgConfigLibs} -l${PROJECT_LOWERCASE_NAME}-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}-loader.so.${MAJOR}")
|
|
|
|
ENDIF (WIN32)
|
2014-09-19 11:04:31 +04:00
|
|
|
|
|
|
|
CONFIGURE_FILE (
|
2015-10-19 12:13:02 +03:00
|
|
|
"${CMAKE_SOURCE_DIR}/cmake/backbone/templates/pkg-config.pc.in"
|
2014-09-19 11:04:31 +04:00
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_LOWERCASE_NAME}-${MAJOR}.pc"
|
|
|
|
)
|