| 1 |
greg |
1.1 |
include(setup_paths.cmake) # configured file found in the same dir as this file |
| 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]") |
| 7 |
|
|
execute_process( |
| 8 |
|
|
COMMAND oconv${CMAKE_EXECUTABLE_SUFFIX} model.b90 desk misc |
| 9 |
|
|
WORKING_DIRECTORY ${office_dir} |
| 10 |
|
|
OUTPUT_FILE test/raytest_modelb.oct |
| 11 |
|
|
RESULT_VARIABLE res |
| 12 |
|
|
) |
| 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 |
|
|
|
| 28 |
|
|
if(NOT ${res} EQUAL 0) |
| 29 |
|
|
message(FATAL_ERROR "Bad return value from oconv, res = ${res}") |
| 30 |
|
|
endif() |