| Revision: | 1.2 |
| Committed: | Mon Jan 8 16:51:31 2018 UTC (7 years, 10 months ago) by greg |
| Branch: | MAIN |
| CVS Tags: | rad6R0, rad5R4, rad5R3, rad5R2, HEAD |
| Changes since 1.1: | +4 -20 lines |
| Log Message: | Update to CMake build system from Rob G. and Alex S., adding test cases |
| # | Content |
|---|---|
| 1 | include(setup_paths.cmake) |
| 2 | |
| 3 | file(REMOVE_RECURSE ${test_output_dir}) |
| 4 | file(MAKE_DIRECTORY ${test_output_dir}) |
| 5 | |
| 6 | execute_process( |
| 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 | ) |
| 12 | if(NOT ${res} EQUAL 0) |
| 13 | message(FATAL_ERROR "Bad return value from oconv, res = ${res}") |
| 14 | endif() |