Skip to content

Commit 207173e

Browse files
committed
Standardize config macros
Signed-off-by: methylDragon <methylDragon@gmail.com>
1 parent a3e7b9b commit 207173e

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

cmake/config.hh.in

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,37 @@
1+
/*
2+
* Copyright (C) 2022 Open Source Robotics Foundation
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
118
/* Config.hh. Generated by CMake for @PROJECT_NAME@. */
219

20+
#ifndef GZ_TOOLS_CONFIG_HH_
21+
#define GZ_TOOLS_CONFIG_HH_
22+
323
/* Version number */
4-
#define ${PROJECT_NAME_UPPER}_MAJOR_VERSION ${PROJECT_MAJOR_VERSION}
5-
#define ${PROJECT_NAME_UPPER}_MINOR_VERSION ${PROJECT_MINOR_VERSION}
6-
#define ${PROJECT_NAME_UPPER}_PATCH_VERSION ${PROJECT_PATCH_VERSION}
24+
#define GZ_TOOLS_MAJOR_VERSION ${PROJECT_MAJOR_VERSION}
25+
#define GZ_TOOLS_MINOR_VERSION ${PROJECT_MINOR_VERSION}
26+
#define GZ_TOOLS_PATCH_VERSION ${PROJECT_PATCH_VERSION}
727

8-
#define ${PROJECT_NAME_UPPER}_VERSION "${PROJECT_VERSION}"
9-
#define ${PROJECT_NAME_UPPER}_VERSION_FULL "${PROJECT_VERSION_FULL}"
28+
#define GZ_TOOLS_VERSION "${PROJECT_VERSION}"
29+
#define GZ_TOOLS_VERSION_FULL "${PROJECT_VERSION_FULL}"
1030

11-
#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"
31+
#define GZ_TOOLS_VERSION_HEADER "Gazebo Tools, version ${PROJECT_VERSION_FULL}\nCopyright (C) 2014 Open Source Robotics Foundation.\nReleased under the Apache 2.0 License.\n\n"
1232

1333
#cmakedefine BUILD_TYPE_PROFILE 1
1434
#cmakedefine BUILD_TYPE_DEBUG 1
1535
#cmakedefine BUILD_TYPE_RELEASE 1
36+
37+
#endif

0 commit comments

Comments
 (0)