xref: /curl/tests/http/CMakeLists.txt (revision 5abfe451)
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
25find_program(CADDY "caddy")  # /usr/bin/caddy
26if(NOT CADDY)
27  set(CADDY "")
28endif()
29mark_as_advanced(CADDY)
30
31find_program(VSFTPD "vsftpd")  # /usr/sbin/vsftpd
32if(NOT VSFTPD)
33  set(VSFTPD "")
34endif()
35mark_as_advanced(VSFTPD)
36
37find_program(HTTPD "apache2")  # /usr/sbin/apache2
38if(NOT HTTPD)
39  set(HTTPD "")
40endif()
41mark_as_advanced(HTTPD)
42
43find_program(APACHECTL "apache2ctl")  # /usr/sbin/apache2ctl
44if(NOT APACHECTL)
45  set(APACHECTL "")
46endif()
47mark_as_advanced(APACHECTL)
48
49find_program(APXS "apxs")
50if(NOT APXS)
51  set(APXS "")
52endif()
53mark_as_advanced(APXS)
54
55find_program(HTTPD_NGHTTPX "nghttpx" PATHS "/usr/bin" "/usr/local/bin")
56if(NOT HTTPD_NGHTTPX)
57  set(HTTPD_NGHTTPX "")
58endif()
59mark_as_advanced(HTTPD_NGHTTPX)
60
61# Consumed variables: APACHECTL, APXS, CADDY, HTTPD, HTTPD_NGHTTPX, VSFTPD
62configure_file("config.ini.in" "${CMAKE_CURRENT_BINARY_DIR}/config.ini" @ONLY)
63