From 33ee73fffaf0fb44d280b8bae16ec9dae15956d7 Mon Sep 17 00:00:00 2001 From: Manuel Argüelles Date: Fri, 23 Aug 2013 15:31:24 -0500 Subject: Add pkg-config file Generate and install a toxcore.pc file to be used with pkg-config. --- core/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/CMakeLists.txt') diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 49ca7c83..ecbb65c2 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -37,3 +37,9 @@ if(WIN32) target_link_libraries(toxcore ws2_32) endif() +execute_process(COMMAND git rev-list HEAD --count OUTPUT_VARIABLE COMMIT) + +# Write pkgconfig-file: +include(InstallPkgConfigFile) +install_pkg_config_file(toxcore CFLAGS LIBS -ltoxcore REQUIRES VERSION 0.1.1_r${COMMIT}) + -- cgit v1.2.3