diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-15 19:20:50 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-16 01:21:32 +0300 |
commit | 3dc0b9a3ae90dcac2f1150e6b2dfb0a5a310355b (patch) | |
tree | fca7da94fdc0f4693a8b49b765738b9e842a1407 /test/CMakeLists.txt | |
parent | lab_rat -> foobar (diff) | |
download | winapi-debug-3dc0b9a3ae90dcac2f1150e6b2dfb0a5a310355b.tar.gz winapi-debug-3dc0b9a3ae90dcac2f1150e6b2dfb0a5a310355b.zip |
add call stack collection support
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 619a51e..656caa9 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,4 +1,13 @@ -set(CC_STATIC_RUNTIME OFF) +add_executable(call_stack call_stack.cpp) +target_link_libraries(call_stack PRIVATE pdb_repo) + +install(TARGETS call_stack RUNTIME DESTINATION bin) +if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + install(FILES "$<TARGET_PDB_FILE:call_stack>" DESTINATION bin OPTIONAL) +endif() + +set(CC_STATIC_RUNTIME OFF) # Reduce the number of symbols in this test utility + add_executable(foobar foobar.cpp) install(TARGETS foobar RUNTIME DESTINATION bin) |