mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-26 19:32:17 -05:00
11 lines
561 B
CMake
11 lines
561 B
CMake
|
if(EXISTS ${SOURCE_DIR}/OTRExporter/oot.otr)
|
||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E copy oot.otr ${SOURCE_DIR})
|
||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E copy oot.otr ${BINARY_DIR}/soh/)
|
||
|
endif()
|
||
|
if(EXISTS ${SOURCE_DIR}/OTRExporter/oot-mq.otr)
|
||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E copy oot-mq.otr ${SOURCE_DIR})
|
||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E copy oot-mq.otr ${BINARY_DIR}/soh/)
|
||
|
endif()
|
||
|
if(NOT EXISTS ${SOURCE_DIR}/oot.otr AND NOT EXISTS ${SOURCE_DIR}/oot-mq.otr)
|
||
|
message(FATAL_ERROR, "No OTR files found.")
|
||
|
endif()
|