Название проекта и организации в верхнем регистре

This commit is contained in:
Andrei Astafev 2019-10-04 12:35:35 +03:00
parent cceec65fe3
commit d28f78d521
2 changed files with 4 additions and 0 deletions

View File

@ -5,7 +5,9 @@ function(cmlib_config_hpp_generate)
get_property(PROJECT_VERSION_INT GLOBAL PROPERTY PROJECT_VERSION_INT) get_property(PROJECT_VERSION_INT GLOBAL PROPERTY PROJECT_VERSION_INT)
get_property(ORGANIZATION_NAME GLOBAL PROPERTY ORGANIZATION_NAME) get_property(ORGANIZATION_NAME GLOBAL PROPERTY ORGANIZATION_NAME)
string(TOLOWER ${ORGANIZATION_NAME} ORGANIZATION_NAME_LOWER) string(TOLOWER ${ORGANIZATION_NAME} ORGANIZATION_NAME_LOWER)
string(TOUPPER ${ORGANIZATION_NAME} ORGANIZATION_NAME_UPPER)
string(TOLOWER ${CMAKE_PROJECT_NAME} CMAKE_PROJECT_NAME_LOWER) string(TOLOWER ${CMAKE_PROJECT_NAME} CMAKE_PROJECT_NAME_LOWER)
string(TOUPPER ${CMAKE_PROJECT_NAME} CMAKE_PROJECT_NAME_UPPER)
configure_file(${CMLIB_MODULE_DIR}/hpp/cmlib_config.hpp.in configure_file(${CMLIB_MODULE_DIR}/hpp/cmlib_config.hpp.in
${CMAKE_BINARY_DIR}/include/cmlib_config.hpp) ${CMAKE_BINARY_DIR}/include/cmlib_config.hpp)
endfunction() endfunction()

View File

@ -5,8 +5,10 @@
#define @CMLIB_PROJECT_NAME_CANONICAL@_VERSION_INT @PROJECT_VERSION_INT@ #define @CMLIB_PROJECT_NAME_CANONICAL@_VERSION_INT @PROJECT_VERSION_INT@
#define ORGANIZATION_NAME "@ORGANIZATION_NAME@" #define ORGANIZATION_NAME "@ORGANIZATION_NAME@"
#define ORGANIZATION_NAME_LOWER "@ORGANIZATION_NAME_LOWER@" #define ORGANIZATION_NAME_LOWER "@ORGANIZATION_NAME_LOWER@"
#define ORGANIZATION_NAME_UPPER "@ORGANIZATION_NAME_UPPER@"
#define PROJECT_NAME "@CMAKE_PROJECT_NAME@" #define PROJECT_NAME "@CMAKE_PROJECT_NAME@"
#define PROJECT_NAME_LOWER "@CMAKE_PROJECT_NAME_LOWER@" #define PROJECT_NAME_LOWER "@CMAKE_PROJECT_NAME_LOWER@"
#define PROJECT_NAME_UPPER "@CMAKE_PROJECT_NAME_UPPER@"
#define BUILD_TYPE "@CMAKE_BUILD_TYPE@" #define BUILD_TYPE "@CMAKE_BUILD_TYPE@"
#define BUILD_DATE "@TODAY@" #define BUILD_DATE "@TODAY@"
#cmakedefine PROFILE @PROFILE@ #cmakedefine PROFILE @PROFILE@