ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/resources/cmake_tests/CMakeLists.txt
Revision: 1.4
Committed: Thu Jul 24 01:24:01 2025 UTC (2 months, 2 weeks ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -0 lines
Log Message:
chore: Added version string to all CMakeLists.txt files

File Contents

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