From 9e19dcf26b5e48e4b72a17df9faf4e75128c37fc Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Tue, 25 Jul 2023 16:54:24 -0400 Subject: [PATCH] Eliminate GLOB_RECURSE --- CMakeLists.txt | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c226134..611aaaa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -222,7 +222,23 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) -file(GLOB_RECURSE sources src/*.cpp) +set( + sources + src/cpptrace.cpp + src/demangle/demangle_with_cxxabi.cpp + src/demangle/demangle_with_nothing.cpp + src/full/full_trace_with_libbacktrace.cpp + src/full/full_trace_with_stacktrace.cpp + src/symbols/symbols_with_addr2line.cpp + src/symbols/symbols_with_dbghelp.cpp + src/symbols/symbols_with_dl.cpp + src/symbols/symbols_with_libbacktrace.cpp + src/symbols/symbols_with_nothing.cpp + src/unwind/unwind_with_execinfo.cpp + src/unwind/unwind_with_nothing.cpp + src/unwind/unwind_with_unwind.cpp + src/unwind/unwind_with_winapi.cpp +) # TODO: This feels like a hack. if(CPPTRACE_FULL_TRACE_WITH_LIBBACKTRACE OR CPPTRACE_GET_SYMBOLS_WITH_LIBBACKTRACE)