Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/SpaceshipNavigation2/cmake/tools/FindDbgHelp.cmake @ 9863

Last change on this file since 9863 was 7449, checked in by landauf, 14 years ago

added windows implementation of SignalHandler.

  • Property svn:eol-style set to native
File size: 737 bytes
Line 
1INCLUDE(FindPackageHandleStandardArgs)
2INCLUDE(HandleLibraryTypes)
3
4FIND_PATH(DBGHELP_INCLUDE_DIR dbghelp.h
5  PATHS $ENV{DBGHELP_DIR}
6  PATH_SUFFIXES include
7)
8FIND_LIBRARY(DBGHELP_LIBRARY dbghelp.lib
9  PATHS $ENV{DXSDK_DIR}
10  PATH_SUFFIXES lib Lib lib/x86 Lib/x86
11  NO_DEFAULT_PATH # Or else CMake 2.6.0 will find the dll in system32 on windows
12)
13FIND_LIBRARY(DBGHELP_LIBRARY dbghelp.lib # search again if the library wasn't found in the dependencies package
14  PATHS $ENV{DXSDK_DIR}
15  PATH_SUFFIXES lib Lib lib/x86 Lib/x86
16)
17
18# Handle the REQUIRED argument and set DBGHELP_FOUND
19FIND_PACKAGE_HANDLE_STANDARD_ARGS(DbgHelp DEFAULT_MSG
20  DBGHELP_LIBRARY
21  DBGHELP_INCLUDE_DIR
22)
23
24MARK_AS_ADVANCED(
25  DBGHELP_INCLUDE_DIR
26  DBGHELP_LIBRARY
27)
Note: See TracBrowser for help on using the repository browser.