Warning, /multimedia/kwave/cmake/FindRequiredProgram.cmake is written in an unsupported language. File is not indexed.

0001 #############################################################################
0002 ##    Kwave                - cmake/FindRequiredProgram.cmake
0003 ##                           -------------------
0004 ##    begin                : Mon May 14 2007
0005 ##    copyright            : (C) 2007 by Thomas Eschenbacher
0006 ##    email                : Thomas.Eschenbacher@gmx.de
0007 #############################################################################
0008 #
0009 #############################################################################
0010 #                                                                           #
0011 # Redistribution and use in source and binary forms, with or without        #
0012 # modification, are permitted provided that the following conditions        #
0013 # are met:                                                                  #
0014 #                                                                           #
0015 # 1. Redistributions of source code must retain the above copyright         #
0016 #    notice, this list of conditions and the following disclaimer.          #
0017 # 2. Redistributions in binary form must reproduce the above copyright      #
0018 #    notice, this list of conditions and the following disclaimer in the    #
0019 #    documentation and/or other materials provided with the distribution.   #
0020 #                                                                           #
0021 # For details see the accompanying cmake/COPYING-CMAKE-SCRIPTS file.        #
0022 #                                                                           #
0023 #############################################################################
0024 
0025 # like FIND_PROGRAM, but show status message or abort if nothing found
0026 # usage: FIND_REQUIRED_PROGRAM(variable name1 [name2] ...)
0027 MACRO(FIND_REQUIRED_PROGRAM _variable)
0028 
0029     FIND_PROGRAM(${_variable} NAMES ${ARGN})
0030 
0031     IF (${_variable})
0032         GET_FILENAME_COMPONENT(_basename ${${_variable}} NAME_WE)
0033         MESSAGE(STATUS "Found ${_basename}: ${${_variable}}")
0034     ELSE (${_variable})
0035         MESSAGE(FATAL_ERROR "Unable to find executable for ${ARGN}")
0036     ENDIF (${_variable})
0037 
0038 ENDMACRO(FIND_REQUIRED_PROGRAM)
0039 
0040 #############################################################################
0041 #############################################################################