diff options
author | Chris Xiong <chirs241097@gmail.com> | 2019-12-02 01:19:30 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2019-12-02 01:19:30 +0800 |
commit | c34daa26c67f4a879ff541775c099ddc19a1dec5 (patch) | |
tree | c7ee978b1d7c880ca8be746ba5dfd3d887239d95 /third_party/backtrace-mingw/CMakeLists.txt | |
parent | 59acbd03eaf082cea6c751ac6a759724bc3dc68f (diff) | |
download | QMidiPlayer-c34daa26c67f4a879ff541775c099ddc19a1dec5.tar.xz |
Add a stack trace printer for the beloved operating system.
Diffstat (limited to 'third_party/backtrace-mingw/CMakeLists.txt')
-rw-r--r-- | third_party/backtrace-mingw/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/backtrace-mingw/CMakeLists.txt b/third_party/backtrace-mingw/CMakeLists.txt new file mode 100644 index 0000000..394d420 --- /dev/null +++ b/third_party/backtrace-mingw/CMakeLists.txt @@ -0,0 +1,11 @@ +add_library(backtrace SHARED backtrace.c) +find_path(BFD_INCLUDE_DIR NAMES bfd.h) +find_library(BFD_LIBRARIES NAMES bfd) +find_library(IBERTY_LIBRARIES NAMES iberty) +find_package(ZLIB REQUIRED) +target_link_libraries(backtrace + ${BFD_LIBRARIES} + ${IBERTY_LIBRARIES} + ${ZLIB_LIBRARIES} + imagehlp +) |