| 1 |
< |
include(setup_paths.cmake) # configured file found in the same dir as this file |
| 1 |
> |
include(setup_paths.cmake) |
| 2 |
|
|
| 3 |
|
file(REMOVE_RECURSE ${test_output_dir}) |
| 4 |
|
file(MAKE_DIRECTORY ${test_output_dir}) |
| 5 |
|
|
| 6 |
– |
message("Run: [oconv${CMAKE_EXECUTABLE_SUFFIX} model.b90 desk misc]") |
| 6 |
|
execute_process( |
| 7 |
< |
COMMAND oconv${CMAKE_EXECUTABLE_SUFFIX} model.b90 desk misc |
| 8 |
< |
WORKING_DIRECTORY ${office_dir} |
| 9 |
< |
OUTPUT_FILE test/raytest_modelb.oct |
| 7 |
> |
WORKING_DIRECTORY ${test_output_dir} |
| 8 |
> |
COMMAND oconv${CMAKE_EXECUTABLE_SUFFIX} -f ${resources_dir}/cornell_box/cornell.rad |
| 9 |
> |
OUTPUT_FILE cornell_box.oct |
| 10 |
|
RESULT_VARIABLE res |
| 11 |
|
) |
| 13 |
– |
if(NOT ${res} EQUAL 0) |
| 14 |
– |
message(FATAL_ERROR "Bad return value from oconv, res = ${res}") |
| 15 |
– |
endif() |
| 16 |
– |
|
| 17 |
– |
message("Run: |
| 18 |
– |
[oconv${CMAKE_EXECUTABLE_SUFFIX} -f -i test/raytest_modelb.oct |
| 19 |
– |
window blinds lights lamp picture]") |
| 20 |
– |
execute_process( |
| 21 |
– |
COMMAND oconv${CMAKE_EXECUTABLE_SUFFIX} |
| 22 |
– |
-f -i test/raytest_modelb.oct window blinds lights lamp picture |
| 23 |
– |
WORKING_DIRECTORY ${office_dir} |
| 24 |
– |
OUTPUT_FILE test/raytest_model.oct |
| 25 |
– |
RESULT_VARIABLE res |
| 26 |
– |
) |
| 27 |
– |
|
| 12 |
|
if(NOT ${res} EQUAL 0) |
| 13 |
|
message(FATAL_ERROR "Bad return value from oconv, res = ${res}") |
| 14 |
|
endif() |