1#############################################################################
2##    Kwave                - cmake/CheckIncludeFilesCXX.cmake
3##                           -------------------
4##    begin                : Tue Oct 13 2015
5##    copyright            : (C) 2015 by Thomas Eschenbacher
6##    email                : Thomas.Eschenbacher@gmx.de
7#############################################################################
8#
9#############################################################################
10#                                                                           #
11# Redistribution and use in source and binary forms, with or without        #
12# modification, are permitted provided that the following conditions        #
13# are met:                                                                  #
14#                                                                           #
15# 1. Redistributions of source code must retain the above copyright         #
16#    notice, this list of conditions and the following disclaimer.          #
17# 2. Redistributions in binary form must reproduce the above copyright      #
18#    notice, this list of conditions and the following disclaimer in the    #
19#    documentation and/or other materials provided with the distribution.   #
20#                                                                           #
21# For details see the accompanying cmake/COPYING-CMAKE-SCRIPTS file.        #
22#                                                                           #
23#############################################################################
24
25INCLUDE(CheckIncludeFileCXX)
26
27# like CHECK_INCLUDE_FILES, but for C++ header and aborts with a fatal error
28# if one of them was not found
29# usage: CHECK_INCLUDE_FILES_CXX(header1 [header2] ...)
30MACRO(CHECK_INCLUDE_FILES_CXX INCLUDES)
31    FOREACH(_include ${INCLUDES})
32	CHECK_INCLUDE_FILE_CXX(${_include} HAVE_${_include})
33	IF (NOT HAVE_${_include})
34	    MESSAGE(FATAL_ERROR "unable to find the following C++ header file: ${_include}")
35	ENDIF (NOT HAVE_${_include})
36    ENDFOREACH(_include ${INCLUDES})
37ENDMACRO(CHECK_INCLUDE_FILES_CXX)
38
39#############################################################################
40#############################################################################
41