996
|
1 # - Check if a given include file exists and error out if not.
|
|
2 # CFUNGE_REQUIRE_INCLUDE(_files _name)
|
|
3 #
|
|
4 # _files - List of includes file to check for.
|
|
5 # _name - Used for cache variable name.
|
|
6 #
|
|
7 # The same variables as for CheckIncludeFile affect this macro.
|
|
8 #
|
|
9 # Will set CFUNGE_CHECKMULTIINCLUDES_<name> (as CheckIncludeFiles out variable).
|
|
10 #
|
|
11
|
|
12 # cfunge - A standard-conforming Befunge93/98/109 interpreter in C.
|
|
13 # Copyright (C) 2008 Arvid Norlander <anmaster AT tele2 DOT se>
|
|
14 #
|
|
15 # This program is free software: you can redistribute it and/or modify
|
|
16 # it under the terms of the GNU General Public License as published by
|
|
17 # the Free Software Foundation, either version 3 of the License, or
|
|
18 # (at the proxy's option) any later version. Arvid Norlander is a
|
|
19 # proxy who can decide which future versions of the GNU General Public
|
|
20 # License can be used.
|
|
21 #
|
|
22 # This program is distributed in the hope that it will be useful,
|
|
23 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
24 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
25 # GNU General Public License for more details.
|
|
26 #
|
|
27 # You should have received a copy of the GNU General Public License
|
|
28 # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
29
|
|
30 include(CheckIncludeFiles)
|
|
31
|
|
32 macro(CFUNGE_REQUIRE_MULTIPLE_INCLUDES _files _name)
|
|
33 CHECK_INCLUDE_FILES("${_files}" "CFUNGE_CHECKMULTIINCLUDES_${_name}")
|
|
34 if (NOT "CFUNGE_CHECKMULTIINCLUDES_${_name}")
|
|
35 message(FATAL_ERROR
|
|
36 "Your system seems to be missing one or several of the headers \"${_files}\" which are required by cfunge.")
|
|
37 endif (NOT "CFUNGE_CHECKMULTIINCLUDES_${_name}")
|
|
38 endmacro(CFUNGE_REQUIRE_MULTIPLE_INCLUDES)
|