Last change
on this file since 10882 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
|
Rev | Line | |
---|
[7449] | 1 | INCLUDE(FindPackageHandleStandardArgs) |
---|
| 2 | INCLUDE(HandleLibraryTypes) |
---|
| 3 | |
---|
| 4 | FIND_PATH(DBGHELP_INCLUDE_DIR dbghelp.h |
---|
| 5 | PATHS $ENV{DBGHELP_DIR} |
---|
| 6 | PATH_SUFFIXES include |
---|
| 7 | ) |
---|
| 8 | FIND_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 | ) |
---|
| 13 | FIND_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 |
---|
| 19 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(DbgHelp DEFAULT_MSG |
---|
| 20 | DBGHELP_LIBRARY |
---|
| 21 | DBGHELP_INCLUDE_DIR |
---|
| 22 | ) |
---|
| 23 | |
---|
| 24 | MARK_AS_ADVANCED( |
---|
| 25 | DBGHELP_INCLUDE_DIR |
---|
| 26 | DBGHELP_LIBRARY |
---|
| 27 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.