TeaSpeak-Client/native/crash_handler/CMakeLists.txt

17 lines
409 B
CMake
Raw Normal View History

2019-10-25 19:51:40 -04:00
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()
2021-02-07 14:26:07 -05:00
find_package(Breakpad REQUIRED)
2019-10-25 19:51:40 -04:00
set(REQUIRED_LIBRARIES
2021-02-07 14:26:07 -05:00
breakpad::static
2019-10-25 19:51:40 -04:00
libstdc++fs.a
)
endif()
add_nodejs_module(${MODULE_NAME} binding.cc ${SOURCE_FILES})
target_link_libraries(${MODULE_NAME} ${REQUIRED_LIBRARIES})