SgPC.cmake 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #.rst:
  2. # SgPC
  3. # ----
  4. #
  5. # `pkg-config` file generation.
  6. #
  7. # Generates and install the `libsagui.pc` file. When it is successfully
  8. # installed, the `pkg-config` tool can be used to get info regarding the
  9. # library, e.g: `pkg-config libsagui --modversion` returns the library
  10. # version. More: [`pkg-config(1)`](https://linux.die.net/man/1/pkg-config).
  11. # _
  12. # ___ __ _ __ _ _ _(_)
  13. # / __|/ _` |/ _` | | | | |
  14. # \__ \ (_| | (_| | |_| | |
  15. # |___/\__,_|\__, |\__,_|_|
  16. # |___/
  17. #
  18. # Cross-platform library which helps to develop web servers or frameworks.
  19. #
  20. # Copyright (C) 2016-2019 Silvio Clecio <[email protected]>
  21. #
  22. # Sagui library is free software; you can redistribute it and/or
  23. # modify it under the terms of the GNU Lesser General Public
  24. # License as published by the Free Software Foundation; either
  25. # version 2.1 of the License, or (at your option) any later version.
  26. #
  27. # Sagui library is distributed in the hope that it will be useful,
  28. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  29. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  30. # Lesser General Public License for more details.
  31. #
  32. # You should have received a copy of the GNU Lesser General Public
  33. # License along with Sagui library; if not, write to the Free Software
  34. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  35. #
  36. if(__SG_PC_INCLUDED)
  37. return()
  38. endif()
  39. set(__SG_PC_INCLUDED ON)
  40. configure_file(${CMAKE_MODULE_PATH}/libsagui.pc.cmake.in
  41. ${CMAKE_BINARY_DIR}/libsagui.pc @ONLY)
  42. install(
  43. FILES ${CMAKE_BINARY_DIR}/libsagui.pc
  44. DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
  45. COMPONENT dev)