Skip to content

Commit

Permalink
Rename CMake project to gz
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina committed May 10, 2022
1 parent e61edda commit ce9fca8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ licenses(["notice"])

exports_files(["LICENSE"])

PROJECT_NAME = "ignition-msgs"
PROJECT_NAME = "gz-msgs"

PROJECT_MAJOR = 8

Expand Down
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
#============================================================================
# Initialize the project
#============================================================================
project(ignition-msgs9 VERSION 9.0.0)
project(gz-msgs9 VERSION 9.0.0)

#============================================================================
# Find ignition-cmake
# Find gz-cmake
#============================================================================
# If you get an error at this line, you need to install ignition-cmake
find_package(ignition-cmake3 REQUIRED)
# If you get an error at this line, you need to install gz-cmake
find_package(gz-cmake3 REQUIRED)

#============================================================================
# Configure the project
Expand Down Expand Up @@ -64,9 +64,9 @@ ign_find_package(IgnProtobuf
PRETTY Protobuf)

#--------------------------------------
# Find ignition-math
ign_find_package(ignition-math7 REQUIRED)
set(IGN_MATH_VER ${ignition-math7_VERSION_MAJOR})
# Find gz-math
ign_find_package(gz-math7 REQUIRED)
set(GZ_MATH_VER ${gz-math7_VERSION_MAJOR})

#--------------------------------------
# Find if ign command is available
Expand Down Expand Up @@ -123,5 +123,5 @@ ign_create_docs(
# Wait to build the doc for the autogenerated code
# The TARGET will exist if doxygen is installed
if(TARGET doc)
add_dependencies(doc ignition-msgs${PROJECT_VERSION_MAJOR})
add_dependencies(doc gz-msgs${PROJECT_VERSION_MAJOR})
endif()
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ target_include_directories(${PROJECT_LIBRARY_TARGET_NAME}
target_link_libraries(${PROJECT_LIBRARY_TARGET_NAME}
PUBLIC
protobuf::libprotobuf
ignition-math${IGN_MATH_VER}::ignition-math${IGN_MATH_VER}
gz-math${GZ_MATH_VER}::gz-math${GZ_MATH_VER}
PRIVATE
TINYXML2::TINYXML2
)
Expand Down

0 comments on commit ce9fca8

Please sign in to comment.