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.

40 lines
1.2 KiB

  1. --- a/build-cmake/CMakeLists.txt
  2. +++ b/build-cmake/CMakeLists.txt
  3. @@ -1,7 +1,10 @@
  4. SET(PACKAGE protobuf-c)
  5. SET(PACKAGE_NAME protobuf-c)
  6. SET(PACKAGE_VERSION 1.3.3)
  7. +set(PACKAGE_URL https://github.com/protobuf-c/protobuf-c)
  8. +set(PACKAGE_DESCRIPTION "Protocol Buffers implementation in C")
  9. +include(GNUInstallDirs)
  10. CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
  11. @@ -141,6 +144,9 @@ IF(CMAKE_HOST_UNIX)
  12. INSTALL(CODE "EXECUTE_PROCESS (COMMAND ln -sf protoc-gen-c protoc-c WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)")
  13. ENDIF()
  14. +CONFIGURE_FILE ("libprotobuf-c.pc.in" "libprotobuf-c.pc" @ONLY)
  15. +INSTALL (FILES "../libprotobuf-c.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
  16. +
  17. INCLUDE(Dart)
  18. SET(DART_TESTING_TIMEOUT 5)
  19. --- /dev/null
  20. +++ b/build-cmake/libprotobuf-c.pc.in
  21. @@ -0,0 +1,14 @@
  22. +prefix=@CMAKE_INSTALL_PREFIX@
  23. +exec_prefix=@CMAKE_INSTALL_PREFIX@
  24. +bindir=${exec_prefix}/@CMAKE_INSTALL_BINDIR@
  25. +libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
  26. +includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
  27. +
  28. +Name: @PACKAGE_NAME@
  29. +Version: @PACKAGE_VERSION@
  30. +Description: @PACKAGE_DESCRIPTION@
  31. +URL: @PACKAGE_URL@
  32. +Requires:
  33. +Libs: -L${libdir} -lprotobuf-c
  34. +Libs.private:
  35. +Cflags: -I${includedir}