xref: /openbsd-src/gnu/llvm/lldb/source/Plugins/ObjectFile/PECOFF/CMakeLists.txt (revision 1a8dbaac879b9f3335ad7fb25429ce63ac1d6bac)
1# Dbghelp is used on windows for writing minidump files.
2if(WIN32)
3  set(DBGHELP_LINK_FILES dbghelp)
4else()
5  set(DBGHELP_LINK_FILES "")
6endif()
7
8add_lldb_library(lldbPluginObjectFilePECOFF PLUGIN
9  ObjectFilePECOFF.cpp
10  PECallFrameInfo.cpp
11  WindowsMiniDump.cpp
12
13  LINK_LIBS
14    lldbCore
15    lldbHost
16    lldbSymbol
17    lldbTarget
18    ${DBGHELP_LINK_FILES}
19  LINK_COMPONENTS
20    BinaryFormat
21    Support
22  )
23