Fixed compilation win32
This commit is contained in:
@ -37,11 +37,16 @@ target_link_libraries(prefabtool
|
||||
)
|
||||
|
||||
# Tool Function
|
||||
function(tool_prefab target in)
|
||||
add_custom_target(${target}
|
||||
function(tool_prefab in)
|
||||
set(DEPS "")
|
||||
if(DAWN_BUILD_TOOLS)
|
||||
set(DEPS prefabtool)
|
||||
endif()
|
||||
|
||||
add_custom_target(prefab_${in}
|
||||
COMMAND prefabtool --input="${DAWN_ASSETS_SOURCE_DIR}/${in}"
|
||||
COMMENT "Generating prefab ${target} from ${in}"
|
||||
DEPENDS prefabtool
|
||||
COMMENT "Generating prefab from ${in}"
|
||||
DEPENDS ${DEPS}
|
||||
)
|
||||
add_dependencies(${DAWN_TARGET_NAME} ${target})
|
||||
add_dependencies(${DAWN_TARGET_NAME} prefab_${in})
|
||||
endfunction()
|
@ -22,7 +22,5 @@ int32_t PrefabTool::start() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::cout << "Input: " << input.filename << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user