Skip to content

Commit

Permalink
Standardize config macros
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed May 19, 2022
1 parent a3e7b9b commit a068ac8
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions cmake/config.hh.in
Original file line number Diff line number Diff line change
@@ -1,15 +1,37 @@
/*
* Copyright (C) 2022 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

/* Config.hh. Generated by CMake for @PROJECT_NAME@. */

#ifndef GZ_TOOLS_CONFIG_HH_
#define GZ_TOOLS_CONFIG_HH_

/* Version number */
#define ${PROJECT_NAME_UPPER}_MAJOR_VERSION ${PROJECT_MAJOR_VERSION}
#define ${PROJECT_NAME_UPPER}_MINOR_VERSION ${PROJECT_MINOR_VERSION}
#define ${PROJECT_NAME_UPPER}_PATCH_VERSION ${PROJECT_PATCH_VERSION}
#define GZ_TOOLS_MAJOR_VERSION ${PROJECT_MAJOR_VERSION}
#define GZ_TOOLS_MINOR_VERSION ${PROJECT_MINOR_VERSION}
#define GZ_TOOLS_PATCH_VERSION ${PROJECT_PATCH_VERSION}

#define ${PROJECT_NAME_UPPER}_VERSION "${PROJECT_VERSION}"
#define ${PROJECT_NAME_UPPER}_VERSION_FULL "${PROJECT_VERSION_FULL}"
#define GZ_TOOLS_VERSION "${PROJECT_VERSION}"
#define GZ_TOOLS_VERSION_FULL "${PROJECT_VERSION_FULL}"

#define ${PROJECT_NAME_UPPER}_VERSION_HEADER "Ignition ${IGN_PROJECT_NAME}, version ${PROJECT_VERSION_FULL}\nCopyright (C) 2014 Open Source Robotics Foundation.\nReleased under the Apache 2.0 License.\n\n"
#define GZ_TOOLS_VERSION_HEADER "Gz Tools, version ${PROJECT_VERSION_FULL}\nCopyright (C) 2014 Open Source Robotics Foundation.\nReleased under the Apache 2.0 License.\n\n"

#cmakedefine BUILD_TYPE_PROFILE 1
#cmakedefine BUILD_TYPE_DEBUG 1
#cmakedefine BUILD_TYPE_RELEASE 1

#endif

0 comments on commit a068ac8

Please sign in to comment.