set(TEST_TYPE "INTEGRATION") set(tests audio.cc category_bitmask.cc cfm_damping_implicit_spring_damper.cc converter.cc disable_fixed_joint_reduction.cc fixed_joint_reduction.cc force_torque_sensor.cc frame.cc include.cc joint_axis_frame.cc link_light.cc locale_fix.cc model_versions.cc nested_model.cc parser_error_detection.cc plugin_attribute.cc plugin_bool.cc plugin_include.cc provide_feedback.cc urdf_gazebo_extensions.cc urdf_joint_parameters.cc ) if (PYTHONINTERP_FOUND AND PY_PSUTIL) set(tests ${tests} element_memory_leak.cc) endif() find_program(XMLLINT_EXE xmllint) if (EXISTS ${XMLLINT_EXE}) set (tests ${tests} schema_test.cc) else() BUILD_WARNING("xmllint not found. schema_test won't be run") endif() link_directories(${PROJECT_BINARY_DIR}/test) sdf_build_tests(${tests}) if (EXISTS ${XMLLINT_EXE}) # Need to run schema target (build .xsd files) before running schema_test add_dependencies(${TEST_TYPE}_schema_test schema) endif()