Warning, /education/kstars/cmake/modules/FindXplanet.cmake is written in an unsupported language. File is not indexed.
0001 # - Try to find XPlanet 0002 # Once done this will define 0003 # 0004 # XPLANET_FOUND - system has XPlanet 0005 # XPLANET_EXECUTABLE - the XPlanet executable 0006 # 0007 # SPDX-FileCopyrightText: 2008 Jerome SONRIER <jsid@emor3j.fr.eu.org> 0008 # 0009 # SPDX-License-Identifier: BSD-3-Clause 0010 # 0011 # THIS FILE NEEDS IMPROVEMENTS 0012 # 0013 0014 # if ( XPLANET_EXECUTABLE ) 0015 # # in cache already 0016 # set(XPLANET_FOUND TRUE) 0017 # message(STATUS "Found XPlanet (in cache): ${XPLANET_EXECUTABLE}") 0018 # else ( XPLANET_EXECUTABLE ) 0019 set(XPLANET_EXECUTABLE XPLANET_EXECUTABLE-NOTFOUND) 0020 find_program(XPLANET_EXECUTABLE NAMES xplanet) 0021 0022 if ( XPLANET_EXECUTABLE ) 0023 set(XPLANET_FOUND TRUE) 0024 else ( XPLANET_EXECUTABLE ) 0025 set(XPLANET_FOUND FALSE) 0026 message(STATUS "xplanet not found.") 0027 endif( XPLANET_EXECUTABLE ) 0028 0029 if ( XPLANET_FOUND ) 0030 if ( NOT XPLANET_FIND_QUIETLY ) 0031 message(STATUS "Found Xplanet: ${XPLANET_EXECUTABLE}") 0032 endif ( NOT XPLANET_FIND_QUIETLY ) 0033 else ( XPLANET_FOUND ) 0034 if ( XPLANET_FIND_REQUIRED ) 0035 message(FATAL_ERROR "xplanet is required.") 0036 endif ( XPLANET_FIND_REQUIRED ) 0037 endif ( XPLANET_FOUND ) 0038 0039 mark_as_advanced ( XPLANET_FOUND ) 0040 0041 # endif( XPLANET_EXECUTABLE ) 0042