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 (6 years, 5 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

# Content
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 set(resources_dir "@CMAKE_SOURCE_DIR@/resources")
10
11 if(WIN32)
12 set(CMAKE_PERL_SUFFIX ".pl")
13 file(TO_NATIVE_PATH "@CMAKE_BINARY_DIR@/bin/Release" rpath)
14 else()
15 file(TO_NATIVE_PATH "@CMAKE_BINARY_DIR@/bin" rpath)
16 endif()
17 file(TO_NATIVE_PATH "@CMAKE_BINARY_DIR@/lib" rlibpath)
18
19 set(ENV{PATH} "${rpath}")
20 set(ENV{RAYPATH} "${rlibpath}")
21 set(test_output_dir "@CMAKE_BINARY_DIR@/testfiles")
22 set(CMAKE_EXECUTABLE_SUFFIX @CMAKE_EXECUTABLE_SUFFIX@)
23
24 message(STATUS "path: $ENV{PATH}")
25 message(STATUS "raypath: $ENV{RAYPATH}")