Oleh-Kravchenko / cmake-abicc

CMake module for checking backward compatibility of a C/C++ library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

CMake module for checking backward compatibility of a C/C++ library.

Requirements

Usage

ABICC_LIBRARIES(target1 [target2 ...])
ABICC_HEADERS(dir1 [dir2 ...] file1 [file2 ...])
ABICC_DUMP_FILE(DUMP file.dump)
ABICC_COMPARE(OLD file1.dump NEW file2.dump)

Example

IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
	SET(ABICC_CURRENT_DUMP
	    "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}_${PROJECT_VERSION}.dump")
	ABICC_LIBRARIES(libtools)
	ABICC_HEADERS(include)
	ABICC_DUMP_FILE(DUMP "${ABICC_CURRENT_DUMP}")
	ABICC_COMPARE(
	OLD
		"/home/projects/libtools/libtools_0.0.4.dump"
	NEW
		"${ABICC_CURRENT_DUMP}")
ENDIF()

Installation

Gentoo Linux

$ layman -S
$ layman -a kaa
$ emerge dev-util/cmake-abicc -a

Use as git submodule

Install from sources

$ git clone https://github.com/Oleh-Kravchenko/cmake-abicc.git
$ cd cmake-abicc
$ mkdir build
$ cd build
$ cmake -Wno-dev -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
$ sudo make install

Yocto

Please use recipe contrib/yocto/cmake-abicc_git.bb

About

CMake module for checking backward compatibility of a C/C++ library

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:CMake 94.1%Language:BitBake 5.9%