Commit eeba37c0 authored by srees's avatar srees
Browse files

Add hacked CMakeLists.txt for f450 (needs testing)

parent d4bba3ab
......@@ -45,6 +45,14 @@ add_custom_target(sdf
COMMAND rm -f ${rotors_description_dir}/urdf/iris_base.urdf
)
add_custom_target(sdf_f450
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMAND rm -f ${CMAKE_SOURCE_DIR}/models/f450/f450.sdf
COMMAND python ${scripts_dir}/xacro.py -o ${rotors_description_dir}/urdf/f450_base.urdf ${rotors_description_dir}/urdf/f450_base.xacro enable_mavlink_interface:=${enable_mavlink_interface} enable_ground_truth:=${enable_ground_truth} enable_logging:=${enable_logging} rotors_description_dir:=${rotors_description_dir}
COMMAND gz sdf -p ${rotors_description_dir}/urdf/f450_base.urdf >> ${CMAKE_SOURCE_DIR}/models/f450/f450.sdf
COMMAND rm -f ${rotors_description_dir}/urdf/f450_base.urdf
)
link_directories(${GAZEBO_LIBRARY_DIRS} ${CMAKE_CURRENT_BINARY_DIR}/msgs)
add_subdirectory(msgs)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment