ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/resources/cmake_tests/setup_paths.cmake.in
Revision: 1.2
Committed: Mon Jan 8 16:51:31 2018 UTC (7 years, 3 months ago) by greg
Branch: MAIN
CVS Tags: rad5R2
Changes since 1.1: +10 -23 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 if(WIN32)
2     set(sep ";")
3     else()
4     set(sep ":")
5     set(rtcontrib_threads "-n;2;")
6     endif()
7    
8     file(TO_NATIVE_PATH "@PERL_EXECUTABLE@" perl)
9 greg 1.2 set(resources_dir "@CMAKE_SOURCE_DIR@/resources")
10 greg 1.1
11     if(WIN32)
12 greg 1.2 set(CMAKE_PERL_SUFFIX ".pl")
13     file(TO_NATIVE_PATH "@CMAKE_BINARY_DIR@/bin/Release" rpath)
14 greg 1.1 else()
15 greg 1.2 file(TO_NATIVE_PATH "@CMAKE_BINARY_DIR@/bin" rpath)
16 greg 1.1 endif()
17 greg 1.2 file(TO_NATIVE_PATH "@CMAKE_BINARY_DIR@/lib" rlibpath)
18    
19 greg 1.1 set(ENV{PATH} "${rpath}")
20 greg 1.2 set(ENV{RAYPATH} "${rlibpath}")
21     set(test_output_dir "@CMAKE_BINARY_DIR@/testfiles")
22 greg 1.1 set(CMAKE_EXECUTABLE_SUFFIX @CMAKE_EXECUTABLE_SUFFIX@)
23 greg 1.2
24     message(STATUS "path: $ENV{PATH}")
25 greg 1.1 message(STATUS "raypath: $ENV{RAYPATH}")