ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/resources/cmake_tests/CMakeLists.txt
Revision: 1.2
Committed: Mon Jan 8 16:51:31 2018 UTC (6 years, 5 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad5R2
Changes since 1.1: +35 -35 lines
Log Message:
Update to CMake build system from Rob G. and Alex S., adding test cases

File Contents

# User Rev Content
1 greg 1.1 include(FindPerl)
2    
3 greg 1.2 set(resources_dir "${CMAKE_SOURCE_DIR}/resources")
4 greg 1.1
5     configure_file(setup_paths.cmake.in setup_paths.cmake @ONLY)
6     # configure these files so that they will be in the binary
7     # directory. This will allow them to include setup_paths.cmake
8     # from the binary directory and just use regular variables in the
9     # configured files.
10     configure_file(test_setup.cmake test_setup.cmake COPYONLY)
11     configure_file(test_rtrace.cmake test_rtrace.cmake COPYONLY)
12     configure_file(test_rpict.cmake test_rpict.cmake COPYONLY)
13     configure_file(test_getinfo.cmake test_getinfo.cmake COPYONLY)
14     configure_file(test_pcond.cmake test_pcond.cmake COPYONLY)
15     configure_file(test_falsecolor.cmake test_falsecolor.cmake COPYONLY)
16     configure_file(test_DC.cmake test_DC.cmake COPYONLY)
17 greg 1.2 configure_file(test_evalglare.cmake test_evalglare.cmake COPYONLY)
18    
19     add_test(test_setup ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/test_setup.cmake)
20    
21     add_test(test_rtrace ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/test_rtrace.cmake)
22     set_tests_properties(test_rtrace PROPERTIES
23     PASS_REGULAR_EXPRESSION "passed"
24     FAIL_REGULAR_EXPRESSION "failed"
25     )
26    
27     add_test(test_rpict ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/test_rpict.cmake)
28     set_tests_properties(test_rpict PROPERTIES
29     PASS_REGULAR_EXPRESSION "passed"
30     FAIL_REGULAR_EXPRESSION "failed"
31     )
32    
33     add_test(test_getinfo ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/test_getinfo.cmake)
34    
35     add_test(test_pcond ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/test_pcond.cmake)
36     set_tests_properties(test_pcond PROPERTIES
37     PASS_REGULAR_EXPRESSION "passed"
38     FAIL_REGULAR_EXPRESSION "failed"
39     )
40    
41     add_test(test_evalglare ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/test_evalglare.cmake)
42     set_tests_properties(test_evalglare PROPERTIES
43     PASS_REGULAR_EXPRESSION "passed"
44     FAIL_REGULAR_EXPRESSION "failed"
45     )
46 greg 1.1
47     if(PERL_FOUND)
48 greg 1.2 add_test(test_falsecolor ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/test_falsecolor.cmake)
49     set_tests_properties(test_falsecolor PROPERTIES
50     PASS_REGULAR_EXPRESSION "passed"
51     FAIL_REGULAR_EXPRESSION "failed"
52     )
53 greg 1.1 endif()