TeaSpeak-Client/native/crash_handler/CMakeLists.txt

18 lines
546 B
CMake
Raw Normal View History

2019-06-26 16:09:01 -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()
include_directories(/usr/local/include/breakpad)
resolve_library(LIBRARY_PATH_BREAKPAD OFF "${LIBRARY_PATH}/breakpad/build/src/client/linux/libbreakpad_client.a")
set(REQUIRED_LIBRARIES
${LIBRARY_PATH_BREAKPAD}
libstdc++fs.a
)
endif()
add_nodejs_module(${MODULE_NAME} binding.cc ${SOURCE_FILES})
target_link_libraries(${MODULE_NAME} ${REQUIRED_LIBRARIES})