TeaSpeak-Client/native/crash_handler/CMakeLists.txt
2021-02-07 20:26:07 +01:00

17 lines
409 B
CMake

set(MODULE_NAME "teaclient_crash_handler")
set(SOURCE_FILES ${SOURCE_FILES} src/crash_handler.cpp)
if (MSVC)
set(SOURCE_FILES ${SOURCE_FILES} src/win_crash_generator.cpp)
else()
find_package(Breakpad REQUIRED)
set(REQUIRED_LIBRARIES
breakpad::static
libstdc++fs.a
)
endif()
add_nodejs_module(${MODULE_NAME} binding.cc ${SOURCE_FILES})
target_link_libraries(${MODULE_NAME} ${REQUIRED_LIBRARIES})