File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -819,3 +819,19 @@ if(SENTRY_BUILD_SHARED_LIBS)
819819 "$<$<PLATFORM_ID:Android>:-Wl,-z,max-page-size=16384>"
820820 )
821821endif ()
822+
823+ # Generate and install pkg-config file
824+ if (SENTRY_INSTALL_PKGCONFIG)
825+ set (PROJECT_VERSION "${SENTRY_VERSION_FULL} " )
826+ set (PREFIX "${CMAKE_INSTALL_PREFIX} " )
827+ include (GNUInstallDirs)
828+ configure_file (
829+ "${CMAKE_CURRENT_SOURCE_DIR} /sentry.pc.in"
830+ "${CMAKE_CURRENT_BINARY_DIR} /sentry.pc"
831+ @ONLY
832+ )
833+ install (
834+ FILES "${CMAKE_CURRENT_BINARY_DIR} /sentry.pc"
835+ DESTINATION "${CMAKE_INSTALL_LIBDIR} /pkgconfig"
836+ )
837+ endif ()
Original file line number Diff line number Diff line change 1+ prefix=@PREFIX@
2+ exec_prefix=${prefix}
3+ libdir=${prefix}/lib
4+ includedir=${prefix}/include
5+
6+ Name: sentry
7+ Description: Sentry SDK for C, C++ and native applications
8+ Version: @PROJECT_VERSION@
9+ URL: https://sentry.io/
10+ Libs: -L${libdir} -lsentry -lstdc++
11+ Cflags: -I${includedir}
You can’t perform that action at this time.
0 commit comments