Skip to content
Snippets Groups Projects
Commit d50178b4 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

cmake: add version, depend on libpjproject

Change-Id: I992cfff2e249f53b4f6ba2b989d4b5ed8e69aef2
parent 5c93b5a7
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 3.22)
project(dhtnet)
project(dhtnet
VERSION 0.0.1
LANGUAGES CXX
DESCRIPTION "A C++ library for NAT traversal and secure communication")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
......@@ -9,6 +12,7 @@ set (prefix ${CMAKE_INSTALL_PREFIX})
set (exec_prefix "\${prefix}")
set (libdir "${CMAKE_INSTALL_FULL_LIBDIR}")
set (includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
set (VERSION ${CMAKE_PROJECT_VERSION})
find_package (PkgConfig REQUIRED)
find_package(msgpackc-cxx QUIET CONFIG)
......
......@@ -6,5 +6,5 @@ Name: dhtnet
Description: C++ peer to peer networking library
Version: @VERSION@
Requires: opendht >= 2.6
Requires.private: pjproject
Requires.private: libpjproject
Cflags: -I${includedir}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment