Auto-generate version.h

This commit is contained in:
Grant Limberg 2019-08-12 12:43:28 -07:00
commit 4fae382ffd
3 changed files with 17 additions and 4 deletions

View file

@ -2,6 +2,13 @@
cmake_minimum_required (VERSION 3.8)
# ZeroTier One Version Config
set(ZEROTIER_ONE_VERSION_MAJOR 1)
set(ZEROTIER_ONE_VERSION_MINOR 4)
set(ZEROTIER_ONE_VERSION_REVISION 2)
set(ZEROTIER_ONE_VERSION_BUILD 0)
# Set a default build type if none was specified
set(default_build_type "Release")
if(EXISTS "${CMAKE_SOURCE_DIR}/.git")
@ -80,6 +87,11 @@ set(libs
zt_controller
)
configure_file(
version.h.in
${CMAKE_SOURCE_DIR}/version.h
)
set(src
one.cpp
"ext/http-parser/http_parser.c"