1
0
Fork 0
flightgear/CMakeModules/FindCrashRpt.cmake

32 lines
888 B
CMake
Raw Normal View History

# Find CrashRpt
# ~~~~~~~~~~~~
# Copyright (c) 2014, James Turner <zakalawe at mac dot com>
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#
# CMake module to search for CrashRpt library
#
# If it's found it sets CRASHRPT_FOUND to TRUE
# and following variables are set:
# CRASHRPT_FOUND_INCLUDE_DIR
# CRASHRPT_FOUND_LIBRARY
FIND_PATH(CRASHRPT_INCLUDE_DIR CrashRpt.h
2016-12-09 14:39:25 +00:00
PATH_SUFFIXES include
HINTS $ENV{CRASHRPTDIR}
PATHS
${ADDITIONAL_LIBRARY_PATHS}
)
set(CRASHRPPT_LIBRARIES "")
2016-12-09 14:39:25 +00:00
FIND_LIBRARY(CRASHRPT_LIBRARY NAMES CrashRpt1402 CrashRpt1403
HINTS $ENV{CRASHRPTDIR}
PATH_SUFFIXES lib
PATHS ${ADDITIONAL_LIBRARY_PATHS}
)
include(FindPackageHandleStandardArgs)
2016-12-09 14:39:25 +00:00
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CRASHRPT DEFAULT_MSG
CRASHRPT_LIBRARY CRASHRPT_INCLUDE_DIR)