My CMake modules, scripts, templates
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PkgConfigCommonRules.cmake 794B

12345678910111213141516171819202122232425262728
  1. IF (WIN32)
  2. SET (PkgConfigPrefix "")
  3. ELSE (WIN32)
  4. SET (PkgConfigPrefix ${CMAKE_INSTALL_PREFIX})
  5. ENDIF (WIN32)
  6. SET (PkgConfigExecPrefix "\${prefix}")
  7. SET (lib "lib")
  8. IF(UNIX)
  9. IF("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
  10. SET (lib "lib64")
  11. ENDIF()
  12. ENDIF(UNIX)
  13. SET (PkgConfigLibDir "\${exec_prefix}/${lib}")
  14. SET (PkgConfigIncludeDir "\${prefix}/include")
  15. SET (PkgConfigName "${CMAKE_PROJECT_NAME}")
  16. SET (PkgConfigDescription "${PROJECT_DESCRIPTION}")
  17. SET (PkgConfigVersion "${MAJOR}.${MINOR}.${PATCH}")
  18. SET (PkgConfigLibs "-L\${libdir}")
  19. IF (WIN32)
  20. SET (PkgConfigLibs "${PkgConfigLibs} -l${PROJECT_LOWERCASE_NAME}-${MAJOR}")
  21. ELSE (WIN32)
  22. SET (PkgConfigLibs "${PkgConfigLibs} -l${PROJECT_LOWERCASE_NAME}.so.${MAJOR}")
  23. ENDIF (WIN32)
  24. SET (PkgConfigLibsPrivate "")
  25. SET (PkgConfigCflags "")