aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-12-02 01:19:30 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-12-02 01:19:30 +0800
commitc34daa26c67f4a879ff541775c099ddc19a1dec5 (patch)
treec7ee978b1d7c880ca8be746ba5dfd3d887239d95 /CMakeLists.txt
parent59acbd03eaf082cea6c751ac6a759724bc3dc68f (diff)
downloadQMidiPlayer-c34daa26c67f4a879ff541775c099ddc19a1dec5.tar.xz
Add a stack trace printer for the beloved operating system.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 92ba7f7..6b92872 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,6 +15,9 @@ pkg_search_module(fluidsynth REQUIRED fluidsynth>=2.0.0)
pkg_search_module(rtmidi REQUIRED rtmidi)
option(BUILD_VISUALIZATION "Build visualization plugin" ON)
+if(WIN32)
+ option(BUILD_BACKTRACE "Build backtrace library" OFF)
+endif()
add_subdirectory(core)
add_subdirectory(qmidiplayer-desktop)
@@ -24,3 +27,8 @@ add_subdirectory(simple-visualization)
if(BUILD_VISUALIZATION)
add_subdirectory(visualization)
endif()
+if(WIN32)
+if(BUILD_BACKTRACE)
+ add_subdirectory(third_party/backtrace-mingw)
+endif()
+endif()