updated build system from manual makefile to cmake. added versioning starting at 1.0 with this commit

This commit is contained in:
Rexy712
2018-05-18 12:26:29 -07:00
parent 9d55a23e82
commit 2fe3c80a09
9 changed files with 97 additions and 91 deletions

View File

@@ -19,13 +19,14 @@
#ifndef RECBACKLIGHT_CMD_H
#define REXBACKLIGHT_CMD_H
#define OP_INC 1
#define OP_DEC 2
#define OP_SET 4
#define OP_LIST 8
#define OP_GET 128
#define OP_NONE 0
#define OP_USAGE 255
#define OP_INC 1
#define OP_DEC 2
#define OP_SET 4
#define OP_LIST 8
#define OP_GET 128
#define OP_NONE 0
#define OP_VERSION 254
#define OP_USAGE 255
struct cmd_arg{
const char* lopt;

View File

@@ -32,6 +32,7 @@
extern int return_value;
void mem_error(void);
_Noreturn void version(void);
_Noreturn void usage(int exit_val);

2
include/config.h.in Normal file
View File

@@ -0,0 +1,2 @@
#define REXBACKLIGHT_VERSION_MAJOR 1
#define REXBACKLIGHT_VERSION_MINOR 0