Skip to content

Commit

Permalink
Version 0.3.1-alpha
Browse files Browse the repository at this point in the history
	- Alpha version - release preparation
	- Version string bump
	- Involved autosubstitution on version.h
	- Completed release of standalone controller for WT31N
	- Preparation to generate installation scenario
  • Loading branch information
twdragon committed Jul 14, 2022
1 parent ff73d9d commit 8b3c6f6
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@
.idea
__pycache__
.cmake/
include/witmotion/version.h

10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.1)
project(witmotion-uart-qt)

# VERSIONING
execute_process(COMMAND git rev-parse --short HEAD
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE COMMIT_ID
Expand All @@ -12,13 +14,19 @@ else(CMAKE_BUILD_TYPE STREQUAL "Release")
set(PROJECT_VERSION "${PROJECT_VERSION}~dev_${COMMIT_ID}")
endif(CMAKE_BUILD_TYPE STREQUAL "Release")
message(STATUS "Building version ${PROJECT_VERSION}")
configure_file(config/version.h.in
${CMAKE_CURRENT_SOURCE_DIR}/include/witmotion/version.h
)

set (CMAKE_CXX_STANDARD 14)
include(CheckIncludeFile)
check_include_file("inttypes.h" HAVE_INTTYPES_H)
if(NOT HAVE_INTTYPES_H)
message(FATAL_ERROR "\'inttypes.h\' include file required!. Please check your toolchain!")
endif(NOT HAVE_INTTYPES_H)
include_directories(include)
include_directories(include
${CMAKE_CURRENT_BINARY_DIR}
)
find_package(Qt5 REQUIRED COMPONENTS Core SerialPort)
set(CMAKE_AUTOMOC ON)

Expand Down
9 changes: 9 additions & 0 deletions config/version.h.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace witmotion
{

static const std::string library_version()
{
return "${PROJECT_VERSION}";
}

}
2 changes: 2 additions & 0 deletions include/witmotion/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <QtCore>
#include <QSerialPort>

#include "witmotion/version.h"

/*!
\file types.h
\brief Abstract types collection for Witmotion sensor library
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.1
0.3.1-alpha

0 comments on commit 8b3c6f6

Please sign in to comment.