Mitsuba 0.5.0 CMake fix contributed by Gian Calgeer
parent
ccff3793e0
commit
5bb1c4f1c5
|
@ -17,19 +17,22 @@ add_custom_command (
|
|||
OUTPUT "${SCHEMA_DIR}/scene.xsd"
|
||||
"${SCHEMA_DIR}/upgrade_0.3.0.xsl"
|
||||
"${SCHEMA_DIR}/upgrade_0.4.0.xsl"
|
||||
"${SCHEMA_DIR}/upgrade_0.5.0.xsl"
|
||||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/scene.xsd" "${SCHEMA_DIR}/scene.xsd"
|
||||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/upgrade_0.3.0.xsl" "${SCHEMA_DIR}/upgrade_0.3.0.xsl"
|
||||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/upgrade_0.4.0.xsl" "${SCHEMA_DIR}/upgrade_0.4.0.xsl"
|
||||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/upgrade_0.5.0.xsl" "${SCHEMA_DIR}/upgrade_0.5.0.xsl"
|
||||
MAIN_DEPENDENCY "scene.xsd"
|
||||
DEPENDS "scene.xsd" "upgrade_0.3.0.xsl" "upgrade_0.4.0.xsl"
|
||||
DEPENDS "scene.xsd" "upgrade_0.3.0.xsl" "upgrade_0.4.0.xsl" "upgrade_0.5.0.xsl"
|
||||
COMMENT "Copying XML data: scene schema and upgrade XSL files"
|
||||
)
|
||||
add_custom_target (scene_schema
|
||||
DEPENDS "${SCHEMA_DIR}/scene.xsd"
|
||||
"${SCHEMA_DIR}/upgrade_0.3.0.xsl" "${SCHEMA_DIR}/upgrade_0.4.0.xsl"
|
||||
"${SCHEMA_DIR}/upgrade_0.3.0.xsl" "${SCHEMA_DIR}/upgrade_0.4.0.xsl" "${SCHEMA_DIR}/upgrade_0.5.0.xsl"
|
||||
)
|
||||
set_target_properties (scene_schema PROPERTIES FOLDER "data")
|
||||
|
||||
|
|
Loading…
Reference in New Issue