Skip to content
Ruslan Baratov edited this page Sep 15, 2016 · 3 revisions
hunter_add_package(crashpad)
find_package(crashpad CONFIG REQUIRED)
target_link_libraries(... crashpad::crashpad_client)

Use this code in case you want to copy crashpad_handler to the directory with foo executable:

add_custom_command(
    TARGET foo
    PRE_BUILD
    COMMAND
    "${CMAKE_COMMAND}" -E copy
    "$<TARGET_FILE:crashpad::crashpad_handler>"
    "$<TARGET_FILE_DIR:foo>"
)

Clone this wiki locally