From d28f78d52115566a8a2be22a77be44f928d8e621 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Fri, 4 Oct 2019 12:35:35 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82=D0=B0=20=D0=B8=20?= =?UTF-8?q?=D0=BE=D1=80=D0=B3=D0=B0=D0=BD=D0=B8=D0=B7=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=B2=20=D0=B2=D0=B5=D1=80=D1=85=D0=BD=D0=B5=D0=BC=20?= =?UTF-8?q?=D1=80=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibConfigHPPGenerate.cmake | 2 ++ hpp/cmlib_config.hpp.in | 2 ++ 2 files changed, 4 insertions(+) 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@