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