From 22b26f85d29349c0789ff9035bf5ab49058004b6 Mon Sep 17 00:00:00 2001 From: zontreck Date: Sat, 3 Aug 2024 06:19:15 -0700 Subject: [PATCH] Switch to collada --- bossbotHQ/CMakeLists.txt | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bossbotHQ/CMakeLists.txt b/bossbotHQ/CMakeLists.txt index 481d71a..ed2683f 100644 --- a/bossbotHQ/CMakeLists.txt +++ b/bossbotHQ/CMakeLists.txt @@ -6,24 +6,24 @@ set(TEMP_EGGS ${CMAKE_BINARY_DIR}/temp/bossbotHQ/eggs) # Create TEMP_EGGS directory file(MAKE_DIRECTORY ${TEMP_EGGS}) -# Find all .fbx files in the cwd directory -file(GLOB FBX_FILES "${cwd}/*.fbx") +# Find all .dae files in the cwd directory +file(GLOB DAE_FILES "${cwd}/*.dae") -# Iterate over each .fbx file and convert to .egg -foreach(fbx_file ${FBX_FILES}) - get_filename_component(filename ${fbx_file} NAME_WE) +# Iterate over each .dae file and convert to .egg +foreach(dae_file ${DAE_FILES}) + get_filename_component(filename ${dae_file} NAME_WE) set(egg_file "${TEMP_EGGS}/${filename}.egg") - # Command to convert .fbx to .egg + # Command to convert .dae to .egg add_custom_command( OUTPUT ${egg_file} - COMMAND fbx2egg ${fbx_file} ${egg_file} - DEPENDS ${fbx_file} - COMMENT "Converting ${fbx_file} to ${egg_file}" + COMMAND dae2egg ${dae_file} -o ${egg_file} + DEPENDS ${dae_file} + COMMENT "Converting ${dae_file} to ${egg_file}" ) # Add the egg file to a custom target - add_custom_target(cvfbx2egg_${filename} ALL DEPENDS ${egg_file}) + add_custom_target(cvobj2egg_${filename} ALL DEPENDS ${egg_file}) endforeach() # Add a custom target to ensure all conversions are done