Название проекта и организации в нижнем регистре
This commit is contained in:
parent
aba632a1d7
commit
6081722268
@ -4,6 +4,8 @@ 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 ${CMAKE_PROJECT_NAME} CMAKE_PROJECT_NAME_LOWER)
|
||||||
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()
|
||||||
|
@ -4,7 +4,9 @@
|
|||||||
#define @CMLIB_PROJECT_NAME_CANONICAL@_VERSION_STR "@PROJECT_VERSION@"
|
#define @CMLIB_PROJECT_NAME_CANONICAL@_VERSION_STR "@PROJECT_VERSION@"
|
||||||
#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 PROJECT_NAME "@CMAKE_PROJECT_NAME@"
|
#define PROJECT_NAME "@CMAKE_PROJECT_NAME@"
|
||||||
|
#define PROJECT_NAME_LOWER "@CMAKE_PROJECT_NAME_LOWER@"
|
||||||
#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@
|
||||||
|
Loading…
Reference in New Issue
Block a user