2
0

CMakeLists.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  9. #
  10. # This software is licensed as described in the file COPYING, which
  11. # you should have received as part of this distribution. The terms
  12. # are also available at https://curl.se/docs/copyright.html.
  13. #
  14. # You may opt to use, copy, modify, merge, publish, distribute and/or sell
  15. # copies of the Software, and permit persons to whom the Software is
  16. # furnished to do so, under the terms of the COPYING file.
  17. #
  18. # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  19. # KIND, either express or implied.
  20. #
  21. # SPDX-License-Identifier: curl
  22. #
  23. ###########################################################################
  24. find_program(CADDY "caddy") # /usr/bin/caddy
  25. if(NOT CADDY)
  26. set(CADDY "")
  27. endif()
  28. mark_as_advanced(CADDY)
  29. find_program(VSFTPD "vsftpd") # /usr/sbin/vsftpd
  30. if(NOT VSFTPD)
  31. set(VSFTPD "")
  32. endif()
  33. mark_as_advanced(VSFTPD)
  34. find_program(HTTPD "apache2") # /usr/sbin/apache2
  35. if(NOT HTTPD)
  36. set(HTTPD "")
  37. endif()
  38. mark_as_advanced(HTTPD)
  39. find_program(APACHECTL "apache2ctl") # /usr/sbin/apache2ctl
  40. if(NOT APACHECTL)
  41. set(APACHECTL "")
  42. endif()
  43. mark_as_advanced(APACHECTL)
  44. find_program(APXS "apxs")
  45. if(NOT APXS)
  46. set(APXS "")
  47. endif()
  48. mark_as_advanced(APXS)
  49. find_program(HTTPD_NGHTTPX "nghttpx" PATHS "/usr/bin" "/usr/local/bin")
  50. if(NOT HTTPD_NGHTTPX)
  51. set(HTTPD_NGHTTPX "")
  52. endif()
  53. mark_as_advanced(HTTPD_NGHTTPX)
  54. # Consumed variables: APACHECTL, APXS, CADDY, HTTPD, HTTPD_NGHTTPX, VSFTPD
  55. configure_file("config.ini.in" "${CMAKE_CURRENT_BINARY_DIR}/config.ini" @ONLY)