]> git.mxchange.org Git - flightgear.git/blob - CMakeModules/FindCrashRpt.cmake
Launcher GUI for in-air / navaid starts
[flightgear.git] / CMakeModules / FindCrashRpt.cmake
1 # Find CrashRpt
2 # ~~~~~~~~~~~~
3 # Copyright (c) 2014, James Turner <zakalawe at mac dot com>
4 # Redistribution and use is allowed according to the terms of the BSD license.
5 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
6 #
7 # CMake module to search for CrashRpt library
8 #
9 # If it's found it sets CRASHRPT_FOUND to TRUE
10 # and following variables are set:
11 #    CRASHRPT_FOUND_INCLUDE_DIR
12 #    CRASHRPT_FOUND_LIBRARY
13
14 FIND_PATH(CRASHRPT_INCLUDE_DIR CrashRpt.h
15     PATH_SUFFIXES include 
16     HINTS $ENV{CRASHRPTDIR}
17     PATHS
18     ${ADDITIONAL_LIBRARY_PATHS}
19   )
20
21 set(CRASHRPPT_LIBRARIES "")
22   
23 FIND_LIBRARY(CRASHRPT_LIBRARY NAMES CrashRpt1402
24     HINTS $ENV{CRASHRPTDIR}
25     PATH_SUFFIXES lib
26     PATHS ${ADDITIONAL_LIBRARY_PATHS}
27   )
28
29 include(FindPackageHandleStandardArgs)
30 FIND_PACKAGE_HANDLE_STANDARD_ARGS(CRASHRPT DEFAULT_MSG 
31         CRASHRPT_LIBRARY CRASHRPT_INCLUDE_DIR)