Renamed project
This commit is contained in:
parent
4243ebae5e
commit
bccc30d70a
4 changed files with 7 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
CMAKE_MINIMUM_REQUIRED (VERSION 3.0)
|
||||
|
||||
PROJECT (ervu-esia-module VERSION 1.0.0 LANGUAGES C)
|
||||
PROJECT (ervu-sign-module VERSION 1.0.0 LANGUAGES C)
|
||||
|
||||
SET (CMAKE_C_COMPILER "gcc")
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ CONFIGURE_FILE (${SOURCE_DIR}/version.h.in ${SOURCE_DIR}/version.h)
|
|||
|
||||
# config.h
|
||||
IF (NOT DEFINED CONFIG_NAME)
|
||||
SET (CONFIG_NAME /etc/ervu-esia-module.conf)
|
||||
SET (CONFIG_NAME "/etc/${PROJECT_NAME}.conf")
|
||||
ENDIF ()
|
||||
|
||||
MESSAGE ("CONFIG_NAME: " ${CONFIG_NAME})
|
||||
|
|
|
|||
|
|
@ -3,4 +3,6 @@
|
|||
|
||||
#define CONF_NAME "@CONFIG_NAME@"
|
||||
|
||||
#define APP_NAME "@PROJECT_NAME@"
|
||||
|
||||
#endif // CONFIG_H_INCLUDED
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ print_and_exit_with_error:
|
|||
static void
|
||||
show_usage()
|
||||
{
|
||||
printf("Usage: ervu-esia-module [-hv]\n"
|
||||
printf("Usage: " APP_NAME " [-hv]\n"
|
||||
"\n"
|
||||
"Options:\n"
|
||||
" -h, --help : Show this help, then exit\n"
|
||||
|
|
@ -76,7 +76,7 @@ show_usage()
|
|||
static void
|
||||
show_version()
|
||||
{
|
||||
printf("Version: " ESIA_MODULE_VERSION "\n");
|
||||
printf("Version: " APP_VERSION "\n");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef VERSION_H_INCLUDED
|
||||
#define VERSION_H_INCLUDED
|
||||
|
||||
#define ESIA_MODULE_VERSION "@PROJECT_VERSION@"
|
||||
#define APP_VERSION "@PROJECT_VERSION@"
|
||||
|
||||
#endif // VERSION_H_INCLUDED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue