Skip to content

Oleh-Kravchenko/cmake-abicc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published