Warning, /games/skladnik/cmake/FindPOVRay.cmake is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2022 Friedrich W. H. Kossebau <kossebau@kde.org> 0002 # 0003 # SPDX-License-Identifier: BSD-3-Clause 0004 0005 #[=======================================================================[.rst: 0006 FindPOVRay 0007 ---------- 0008 0009 Try to find POVRay. 0010 0011 If the POVRay executable is not in your PATH, you can provide 0012 an alternative name or full path location with the ``POVRay_EXECUTABLE`` 0013 variable. 0014 0015 This will define the following variables: 0016 0017 ``POVRay_FOUND`` 0018 TRUE if POVRay is available 0019 0020 ``POVRay_EXECUTABLE`` 0021 Path to POVRay executable 0022 0023 If ``POVRay_FOUND`` is TRUE, it will also define the following imported 0024 target: 0025 0026 ``POVRay::POVRay`` 0027 Path to POVRay executable 0028 #]=======================================================================] 0029 0030 find_program(POVRay_EXECUTABLE NAMES povray) 0031 0032 include(FindPackageHandleStandardArgs) 0033 find_package_handle_standard_args(POVRay 0034 FOUND_VAR 0035 POVRay_FOUND 0036 REQUIRED_VARS 0037 POVRay_EXECUTABLE 0038 ) 0039 mark_as_advanced(POVRay_EXECUTABLE) 0040 0041 if(NOT TARGET POVRay::POVRay AND POVRay_FOUND) 0042 add_executable(POVRay::POVRay IMPORTED) 0043 set_target_properties(POVRay::POVRay PROPERTIES 0044 IMPORTED_LOCATION "${POVRay_EXECUTABLE}" 0045 ) 0046 endif() 0047 0048 set_package_properties(POVRay PROPERTIES 0049 URL "https://www.povray.org/" 0050 DESCRIPTION "Tool for creating three-dimensional graphics" 0051 )