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.
7 # CMake module to search for CrashRpt library
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
14 FIND_PATH(CRASHRPT_INCLUDE_DIR CrashRpt.h
16 HINTS $ENV{CRASHRPTDIR}
18 ${ADDITIONAL_LIBRARY_PATHS}
21 set(CRASHRPPT_LIBRARIES "")
23 FIND_LIBRARY(CRASHRPT_LIBRARY NAMES CrashRpt1402
24 HINTS $ENV{CRASHRPTDIR}
26 PATHS ${ADDITIONAL_LIBRARY_PATHS}
29 include(FindPackageHandleStandardArgs)
30 FIND_PACKAGE_HANDLE_STANDARD_ARGS(CRASHRPT DEFAULT_MSG
31 CRASHRPT_LIBRARY CRASHRPT_INCLUDE_DIR)