diff options
author | Manuel Argüelles <manuel.arguelles@gmail.com> | 2013-08-23 15:31:24 -0500 |
---|---|---|
committer | Manuel Argüelles <manuel.arguelles@gmail.com> | 2013-08-23 15:31:24 -0500 |
commit | 33ee73fffaf0fb44d280b8bae16ec9dae15956d7 (patch) | |
tree | 72543192dae738140bafcf074fcf8326528fa523 /core | |
parent | f8f550e2f0604fd4491c9ff01f9843573a5a9b43 (diff) |
Add pkg-config file
Generate and install a toxcore.pc file to be used with pkg-config.
Diffstat (limited to 'core')
-rw-r--r-- | core/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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) | |||
37 | target_link_libraries(toxcore ws2_32) | 37 | target_link_libraries(toxcore ws2_32) |
38 | endif() | 38 | endif() |
39 | 39 | ||
40 | execute_process(COMMAND git rev-list HEAD --count OUTPUT_VARIABLE COMMIT) | ||
41 | |||
42 | # Write pkgconfig-file: | ||
43 | include(InstallPkgConfigFile) | ||
44 | install_pkg_config_file(toxcore CFLAGS LIBS -ltoxcore REQUIRES VERSION 0.1.1_r${COMMIT}) | ||
45 | |||