diff --git a/CMakeLists.txt b/CMakeLists.txt index a5b6a23398e..9a78856ad80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,9 @@ find_package(ignition-cmake3 REQUIRED) #============================================================================ # Configure the project #============================================================================ -ign_configure_project(VERSION_SUFFIX pre1) +ign_configure_project( + REPLACE_IGNITION_INCLUDE_PATH gz/sim + VERSION_SUFFIX pre1) set (CMAKE_CXX_STANDARD 17) #============================================================================ diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 25ec89762d3..4b2bdd7bb18 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -1 +1,2 @@ -add_subdirectory(ignition) +add_subdirectory(gz) +install(DIRECTORY ignition DESTINATION ${IGN_INCLUDE_INSTALL_DIR_FULL}) diff --git a/include/gz/CMakeLists.txt b/include/gz/CMakeLists.txt index 024bcc273fe..e4f01467e84 100644 --- a/include/gz/CMakeLists.txt +++ b/include/gz/CMakeLists.txt @@ -1 +1 @@ -add_subdirectory(gazebo) +add_subdirectory(sim) diff --git a/include/gz/sim/components/CMakeLists.txt b/include/gz/sim/components/CMakeLists.txt index d03429131a4..3806feb805c 100644 --- a/include/gz/sim/components/CMakeLists.txt +++ b/include/gz/sim/components/CMakeLists.txt @@ -13,5 +13,5 @@ configure_file( install( FILES ${CMAKE_CURRENT_BINARY_DIR}/components.hh - DESTINATION ${IGN_INCLUDE_INSTALL_DIR_FULL}/ignition/${IGN_DESIGNATION} + DESTINATION ${IGN_INCLUDE_INSTALL_DIR_FULL}/gz/${IGN_DESIGNATION} ) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 8c7a98d92af..c75e11d2d25 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -37,15 +37,15 @@ function(configure_build_install_location _library_name) endfunction() pybind11_add_module(gazebo SHARED - src/ignition/gazebo/_ignition_gazebo_pybind11.cc - src/ignition/gazebo/EntityComponentManager.cc - src/ignition/gazebo/EventManager.cc - src/ignition/gazebo/TestFixture.cc - src/ignition/gazebo/Server.cc - src/ignition/gazebo/ServerConfig.cc - src/ignition/gazebo/UpdateInfo.cc - src/ignition/gazebo/Util.cc - src/ignition/gazebo/World.cc + src/gz/sim/_gz_sim_pybind11.cc + src/gz/sim/EntityComponentManager.cc + src/gz/sim/EventManager.cc + src/gz/sim/TestFixture.cc + src/gz/sim/Server.cc + src/gz/sim/ServerConfig.cc + src/gz/sim/UpdateInfo.cc + src/gz/sim/Util.cc + src/gz/sim/World.cc ) target_link_libraries(gazebo PRIVATE @@ -55,8 +55,8 @@ target_link_libraries(gazebo PRIVATE # TODO(ahcorde): Move this module to ign-common pybind11_add_module(common SHARED - src/ignition/common/_ignition_common_pybind11.cc - src/ignition/common/Console.cc + src/gz/common/_gz_common_pybind11.cc + src/gz/common/Console.cc ) target_link_libraries(common PRIVATE diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 09769418eff..171da44df0b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -37,12 +37,12 @@ set(gui_sources PARENT_SCOPE ) -ign_add_component(ign +ign_add_component(gz SOURCES ign.cc cmd/ModelCommandAPI.cc - GET_TARGET_NAME ign_lib_target) -target_link_libraries(${ign_lib_target} + GET_TARGET_NAME gz_lib_target) +target_link_libraries(${gz_lib_target} PRIVATE ${PROJECT_LIBRARY_TARGET_NAME} ignition-common${IGN_COMMON_VER}::ignition-common${IGN_COMMON_VER} @@ -184,7 +184,7 @@ ign_build_tests(TYPE UNIT # Command line tests need extra settings foreach(CMD_TEST - UNIT_ign_TEST + UNIT_gz_TEST UNIT_ModelCommandAPI_TEST) if(NOT TARGET ${CMD_TEST}) @@ -199,7 +199,7 @@ foreach(CMD_TEST endif() add_dependencies(${CMD_TEST} - ${ign_lib_target} + ${gz_lib_target} TestModelSystem TestSensorSystem TestWorldSystem diff --git a/src/cmd/CMakeLists.txt b/src/cmd/CMakeLists.txt index a1ff8091c46..a93109596cf 100644 --- a/src/cmd/CMakeLists.txt +++ b/src/cmd/CMakeLists.txt @@ -7,7 +7,7 @@ set(cmd_script_configured "${cmd_script_generated}.configured") # Set the library_location variable to the relative path to the library file # within the install directory structure. -set(library_location "../../../${CMAKE_INSTALL_LIBDIR}/$") +set(library_location "../../../${CMAKE_INSTALL_LIBDIR}/$") configure_file( "cmd${IGN_DESIGNATION}.rb.in" @@ -73,7 +73,7 @@ set(cmd_script_configured_test "${cmd_script_generated_test}.configured") # Set the library_location variable to the relative path to the library file # within the install directory structure. -set(library_location "$") +set(library_location "$") configure_file( "cmd${IGN_DESIGNATION}.rb.in" diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 0577088d964..df7f7364f1d 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -23,10 +23,10 @@ set(CMAKE_AUTORCC ON) # CMake AUTOMOC does not generate moc_*.cpp files automatically for headers # located in different directories than the containing .cc file. For Qt header -# files in `include/ignition/gazebo/gui`, we use qt5_wrap_cpp instead. There is +# files in `include/gz/sim/gui`, we use qt5_wrap_cpp instead. There is # no need to add entries for Qt header files in `src/gui/`. qt5_wrap_cpp(gui_sources - ${PROJECT_SOURCE_DIR}/include/ignition/gazebo/gui/GuiSystem.hh + ${PROJECT_SOURCE_DIR}/include/gz/sim/gui/GuiSystem.hh ) if (MSVC) diff --git a/src/gui/plugins/modules/CMakeLists.txt b/src/gui/plugins/modules/CMakeLists.txt index 60ab08a11c2..28522b260dc 100644 --- a/src/gui/plugins/modules/CMakeLists.txt +++ b/src/gui/plugins/modules/CMakeLists.txt @@ -1,7 +1,7 @@ -# Create an IgnGazebo module -set(module_name IgnGazebo) +# Create an GzGazebo module +set(module_name GzGazebo) -# Add EntityContextMenu QML plugin to IgnGazebo module +# Add EntityContextMenu QML plugin to GzGazebo module gz_add_gui_library(EntityContextMenu SOURCES EntityContextMenu.cc QT_HEADERS EntityContextMenu.hh diff --git a/src/msgs/CMakeLists.txt b/src/msgs/CMakeLists.txt index cd28609f271..7941ad8f482 100644 --- a/src/msgs/CMakeLists.txt +++ b/src/msgs/CMakeLists.txt @@ -8,7 +8,7 @@ PROTOBUF_GENERATE_CPP(PROTO_PRIVATE_SRC PROTO_PRIVATE_HEADERS set(PROTO_PRIVATE_SRC ${PROTO_PRIVATE_SRC} PARENT_SCOPE) set(PROTO_PRIVATE_HEADERS ${PROTO_PRIVATE_HEADERS} PARENT_SCOPE) -add_custom_target(ignition-gazebo_private_msgs +add_custom_target(gz-sim_private_msgs DEPENDS ${PROTO_PRIVATE_SRC} ) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a341f8e5948..9c4f4e0db95 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -5,7 +5,7 @@ include_directories ( ${PROJECT_BINARY_DIR}/include/ ) -configure_file (test_config.hh.in ${PROJECT_BINARY_DIR}/include/ignition/gazebo/test_config.hh) +configure_file (test_config.hh.in ${PROJECT_BINARY_DIR}/include/gz/sim/test_config.hh) # Build gtest add_library(gtest STATIC gtest/src/gtest-all.cc) diff --git a/test/benchmark/CMakeLists.txt b/test/benchmark/CMakeLists.txt index 937e20acd27..281f02fe442 100644 --- a/test/benchmark/CMakeLists.txt +++ b/test/benchmark/CMakeLists.txt @@ -1,8 +1,8 @@ set(TEST_TYPE "BENCHMARK") -include(IgnBenchmark OPTIONAL RESULT_VARIABLE IgnBenchmark_FOUND) +include(GzBenchmark OPTIONAL RESULT_VARIABLE GzBenchmark_FOUND) -if (IgnBenchmark_FOUND) +if (GzBenchmark_FOUND) set(tests each.cc ecm_serialize.cc diff --git a/test/plugins/CMakeLists.txt b/test/plugins/CMakeLists.txt index 554589094a7..86266ca3fe4 100644 --- a/test/plugins/CMakeLists.txt +++ b/test/plugins/CMakeLists.txt @@ -20,7 +20,7 @@ set (test_plugins ) # TODO: someone with knowledge of ign-plugin please resolve: -# TestSystem.obj : error LNK2001: unresolved external symbol IgnitionPluginHook +# TestSystem.obj : error LNK2001: unresolved external symbol GzPluginHook if(NOT WIN32) set (test_plugins ${test_plugins}