Browse Source

Bump (and cmake-modernize) version

pull/34/head
Jason Rhinelander 8 months ago
parent
commit
99a3f1d840
  1. 10
      CMakeLists.txt
  2. 2
      liblokimq.pc.in
  3. 2
      liboxenmq.pc.in
  4. 6
      oxenmq/version.h.in

10
CMakeLists.txt

@ -16,15 +16,13 @@ cmake_minimum_required(VERSION 3.7)
# Has to be set before `project()`, and ignored on non-macos:
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.12 CACHE STRING "macOS deployment target (Apple clang only)")
project(liboxenmq CXX C)
project(liboxenmq
VERSION 1.2.5
LANGUAGES CXX C)
include(GNUInstallDirs)
set(OXENMQ_VERSION_MAJOR 1)
set(OXENMQ_VERSION_MINOR 2)
set(OXENMQ_VERSION_PATCH 4)
set(OXENMQ_VERSION "${OXENMQ_VERSION_MAJOR}.${OXENMQ_VERSION_MINOR}.${OXENMQ_VERSION_PATCH}")
message(STATUS "oxenmq v${OXENMQ_VERSION}")
message(STATUS "oxenmq v${PROJECT_VERSION}")
set(OXENMQ_LIBVERSION 0)

2
liblokimq.pc.in

@ -5,7 +5,7 @@ includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
Name: liblokimq
Description: ZeroMQ-based communication library (compatibility package for liboxenmq)
Version: @OXENMQ_VERSION@
Version: @PROJECT_VERSION@
Libs: -L${libdir} -loxenmq
Libs.private: @PRIVATE_LIBS@

2
liboxenmq.pc.in

@ -5,7 +5,7 @@ includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
Name: liboxenmq
Description: ZeroMQ-based communication library
Version: @OXENMQ_VERSION@
Version: @PROJECT_VERSION@
Libs: -L${libdir} -loxenmq
Libs.private: @PRIVATE_LIBS@

6
oxenmq/version.h.in

@ -1,5 +1,5 @@
namespace oxenmq {
constexpr int VERSION_MAJOR = @OXENMQ_VERSION_MAJOR@;
constexpr int VERSION_MINOR = @OXENMQ_VERSION_MINOR@;
constexpr int VERSION_PATCH = @OXENMQ_VERSION_PATCH@;
constexpr int VERSION_MAJOR = @PROJECT_VERSION_MAJOR@;
constexpr int VERSION_MINOR = @PROJECT_VERSION_MINOR@;
constexpr int VERSION_PATCH = @PROJECT_VERSION_PATCH@;
}

Loading…
Cancel
Save