Skip to content

Commit

Permalink
Add pkg config file (with help from Vicente Adolfo Bolea Sánchez)
Browse files Browse the repository at this point in the history
  • Loading branch information
LocutusOfBorg committed Sep 22, 2015
1 parent dab6486 commit 5e52ae7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ Makefile.in
.libs
*.log
*.trs
*.pc
3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ EXTRA_DIST = docs

include UnitTest++/Makefile.am
include tests/Makefile.am

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = UnitTest++.pc
11 changes: 11 additions & 0 deletions UnitTest++.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: UnitTest++
Description: UnitTest++ is a simple C++ Unit Test Framework
URL: https://github.com/unittest-cpp/unittest-cpp
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lUnitTest++
Cflags: -I${includedir}/
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ AC_INIT([UnitTest++], [1.4.1], [[email protected]])
AC_CONFIG_SRCDIR([UnitTest++/TestDetails.cpp])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([UnitTest++.pc])

AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_CONDITIONAL([WINDOWS],
Expand Down

0 comments on commit 5e52ae7

Please sign in to comment.