From acdf5b2e7a9b3074125bc95bfcf7e6abdc9704b4 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Mon, 14 Mar 2022 21:39:29 -0400 Subject: Update process for ABI testing --- libqpdf/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libqpdf') diff --git a/libqpdf/CMakeLists.txt b/libqpdf/CMakeLists.txt index 2d8c7b65..c5525db2 100644 --- a/libqpdf/CMakeLists.txt +++ b/libqpdf/CMakeLists.txt @@ -579,3 +579,13 @@ if(INSTALL_CMAKE_PACKAGE) ${CMAKE_CURRENT_BINARY_DIR}/qpdfConfig.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/qpdf) endif() + +if(CHECK_SIZES AND BUILD_SHARED_LIBS AND (CMAKE_SYSTEM_NAME STREQUAL "Linux")) + # We can only do this check on a system with ELF shared libraries. + # Since this is a maintainer-only option, testing for Linux is a + # close enough approximation. + add_test( + NAME check-sizes + COMMAND ${qpdf_SOURCE_DIR}/check_abi check-sizes + --lib $) +endif() -- cgit v1.2.3-54-g00ecf