diff --git a/CMakeLists.txt b/CMakeLists.txt index a5b6a23398e..b00e51facda 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) #============================================================================ @@ -252,3 +254,13 @@ endif() if(TARGET doc) file(COPY ${CMAKE_SOURCE_DIR}/tutorials/files/ DESTINATION ${CMAKE_BINARY_DIR}/doxygen/html/files/) endif() + +# TICKTOCK MASTER HEADER (to bypass IGN_DESIGNATION) +# TODO(CH3): Remove on tock +configure_file( + ${CMAKE_CURRENT_BINARY_DIR}/include/gz/${IGN_DESIGNATION}.hh + ${CMAKE_CURRENT_BINARY_DIR}/include/sim.hh + COPYONLY) +install( + FILES ${CMAKE_CURRENT_BINARY_DIR}/include/sim.hh + DESTINATION ${IGN_INCLUDE_INSTALL_DIR_FULL}/gz) 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..100786be0e2 100644 --- a/include/gz/sim/components/CMakeLists.txt +++ b/include/gz/sim/components/CMakeLists.txt @@ -3,7 +3,7 @@ file(GLOB component_headers *.hh) set (component_includes "") foreach (header_full ${component_headers}) get_filename_component(header ${header_full} NAME) - set(component_includes "${component_includes}#include \n") + set(component_includes "${component_includes}#include \n") endforeach() configure_file( @@ -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/sim ) 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..a2a39c966e9 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} @@ -163,7 +163,7 @@ target_include_directories(${PROJECT_LIBRARY_TARGET_NAME} ) add_dependencies(${PROJECT_LIBRARY_TARGET_NAME} - ignition-gazebo_private_msgs + gz-sim_private_msgs ) set(IGNITION_GAZEBO_PLUGIN_INSTALL_DIR @@ -199,7 +199,7 @@ foreach(CMD_TEST endif() add_dependencies(${CMD_TEST} - ${ign_lib_target} + ${gz_lib_target} TestModelSystem TestSensorSystem TestWorldSystem @@ -223,4 +223,3 @@ endforeach() if(NOT WIN32) add_subdirectory(cmd) endif() - 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} diff --git a/tools/clang_tidy.sh b/tools/clang_tidy.sh index f2181710411..a93c0ba3bbd 100755 --- a/tools/clang_tidy.sh +++ b/tools/clang_tidy.sh @@ -11,7 +11,7 @@ cmake .. \ -DCMAKE_EXPORT_COMPILE_COMMANDS=1 # Build enough to get generated msg headers -make ignition-gazebo_private_msgs +make gz-sim_private_msgs cd ..