From 40e7ca4c71a5777ead1699a7264cb39606504596 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 26 Sep 2018 18:10:28 +0200 Subject: Add breakpad submodule --- 3rd-party/breakpad/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 3rd-party/breakpad/CMakeLists.txt (limited to '3rd-party/breakpad/CMakeLists.txt') diff --git a/3rd-party/breakpad/CMakeLists.txt b/3rd-party/breakpad/CMakeLists.txt new file mode 100644 index 0000000..dd0ef8e --- /dev/null +++ b/3rd-party/breakpad/CMakeLists.txt @@ -0,0 +1,11 @@ +if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") + + if (NOT EXISTS "${CMAKE_CURRENT_LIST_DIR}/install") + message(FATAL_ERROR "Could not find breakpad build, see 3rd-party/breakpad/build.sh") + endif () + + find_package(PkgConfig REQUIRED) + set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${CMAKE_CURRENT_LIST_DIR}/install/lib/pkgconfig" ) + pkg_check_modules(BREAKPAD REQUIRED IMPORTED_TARGET breakpad-client) + +endif() # linux system \ No newline at end of file -- cgit v1.2.1