diff --git a/CMLibConfigHPPGenerate.cmake b/CMLibConfigHPPGenerate.cmake index 23fe819..a51577e 100644 --- a/CMLibConfigHPPGenerate.cmake +++ b/CMLibConfigHPPGenerate.cmake @@ -5,7 +5,9 @@ function(cmlib_config_hpp_generate) get_property(PROJECT_VERSION_INT GLOBAL PROPERTY PROJECT_VERSION_INT) get_property(ORGANIZATION_NAME GLOBAL PROPERTY ORGANIZATION_NAME) string(TOLOWER ${ORGANIZATION_NAME} ORGANIZATION_NAME_LOWER) + string(TOUPPER ${ORGANIZATION_NAME} ORGANIZATION_NAME_UPPER) 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 ${CMAKE_BINARY_DIR}/include/cmlib_config.hpp) endfunction() diff --git a/hpp/cmlib_config.hpp.in b/hpp/cmlib_config.hpp.in index 20d2872..549385a 100644 --- a/hpp/cmlib_config.hpp.in +++ b/hpp/cmlib_config.hpp.in @@ -5,8 +5,10 @@ #define @CMLIB_PROJECT_NAME_CANONICAL@_VERSION_INT @PROJECT_VERSION_INT@ #define ORGANIZATION_NAME "@ORGANIZATION_NAME@" #define ORGANIZATION_NAME_LOWER "@ORGANIZATION_NAME_LOWER@" +#define ORGANIZATION_NAME_UPPER "@ORGANIZATION_NAME_UPPER@" #define PROJECT_NAME "@CMAKE_PROJECT_NAME@" #define PROJECT_NAME_LOWER "@CMAKE_PROJECT_NAME_LOWER@" +#define PROJECT_NAME_UPPER "@CMAKE_PROJECT_NAME_UPPER@" #define BUILD_TYPE "@CMAKE_BUILD_TYPE@" #define BUILD_DATE "@TODAY@" #cmakedefine PROFILE @PROFILE@