diff --git a/usd/src/CMakeLists.txt b/usd/src/CMakeLists.txt index cbc349d67..72c194d49 100644 --- a/usd/src/CMakeLists.txt +++ b/usd/src/CMakeLists.txt @@ -10,9 +10,9 @@ set(sources sdf_parser/Sensor.cc sdf_parser/Visual.cc sdf_parser/World.cc + usd_parser/USDMaterial.cc usd_parser/USDData.cc usd_parser/USDStage.cc - usd_parser/USDMaterial.cc ) ign_add_component(usd SOURCES ${sources} GET_TARGET_NAME usd_target) diff --git a/usd/src/usd_parser/USDData.cc b/usd/src/usd_parser/USDData.cc index 79d2fc249..73b9ed80c 100644 --- a/usd/src/usd_parser/USDData.cc +++ b/usd/src/usd_parser/USDData.cc @@ -36,7 +36,7 @@ #include #include "sdf/Material.hh" -#include "sdf/usd/usd_parser/USDMaterial.hh" +#include "USDMaterial.hh" namespace sdf { // Inline bracke to help doxygen filtering. diff --git a/usd/src/usd_parser/USDData_TEST.cc b/usd/src/usd_parser/USDData_TEST.cc index 911da4ccb..abfd40477 100644 --- a/usd/src/usd_parser/USDData_TEST.cc +++ b/usd/src/usd_parser/USDData_TEST.cc @@ -118,11 +118,3 @@ TEST(USDData, Constructor) ignition::common::joinPaths(ignition::common::cwd(), "materials")); } } - -///////////////////////////////////////////////// -/// Main -int main(int argc, char **argv) -{ - ::testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} diff --git a/usd/src/usd_parser/USDMaterial.cc b/usd/src/usd_parser/USDMaterial.cc index e498edde3..d7986be16 100644 --- a/usd/src/usd_parser/USDMaterial.cc +++ b/usd/src/usd_parser/USDMaterial.cc @@ -15,7 +15,7 @@ * */ -#include "sdf/usd/usd_parser/USDMaterial.hh" +#include "USDMaterial.hh" #include #include diff --git a/usd/include/sdf/usd/usd_parser/USDMaterial.hh b/usd/src/usd_parser/USDMaterial.hh similarity index 92% rename from usd/include/sdf/usd/usd_parser/USDMaterial.hh rename to usd/src/usd_parser/USDMaterial.hh index 955d9ae09..694727147 100644 --- a/usd/include/sdf/usd/usd_parser/USDMaterial.hh +++ b/usd/src/usd_parser/USDMaterial.hh @@ -29,7 +29,6 @@ #include "sdf/Material.hh" #include "sdf/config.hh" -#include "sdf/usd/Export.hh" #include "sdf/usd/UsdError.hh" namespace sdf @@ -47,8 +46,8 @@ namespace sdf /// material /// \return UsdErrors, which is a vector of UsdError objects. Each UsdError /// includes an error code and message. An empty vector indicates no error. - UsdErrors IGNITION_SDFORMAT_USD_VISIBLE ParseMaterial( - const pxr::UsdPrim &_prim, sdf::Material &_material); + UsdErrors ParseMaterial(const pxr::UsdPrim &_prim, + sdf::Material &_material); } } } diff --git a/usd/src/usd_parser/USDStage.cc b/usd/src/usd_parser/USDStage.cc index 2db8e2f73..3f5e38d1f 100644 --- a/usd/src/usd_parser/USDStage.cc +++ b/usd/src/usd_parser/USDStage.cc @@ -32,7 +32,6 @@ #pragma pop_macro ("__DEPRECATED") #include "sdf/usd/usd_parser/USDStage.hh" -#include "sdf/usd/usd_parser/USDMaterial.hh" namespace sdf { // Inline bracke to help doxygen filtering. diff --git a/usd/src/usd_parser/USDStage_TEST.cc b/usd/src/usd_parser/USDStage_TEST.cc index 57cfd24f6..dcb4f814a 100644 --- a/usd/src/usd_parser/USDStage_TEST.cc +++ b/usd/src/usd_parser/USDStage_TEST.cc @@ -64,16 +64,8 @@ TEST(USDStage, Constructor) // Invalid file { - sdf::usd::USDStage stage(sdf::testing::TestFile("usd", "/invalid_name")); + sdf::usd::USDStage stage(sdf::testing::TestFile("usd", "invalid_name")); sdf::usd::UsdErrors errors = stage.Init(); EXPECT_EQ(1u, errors.size()); } } - -///////////////////////////////////////////////// -/// Main -int main(int argc, char **argv) -{ - ::testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -}