ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/resources/cmake_tests/setup_paths.cmake.in
Revision: 1.1
Committed: Mon Dec 4 21:58:10 2017 UTC (7 years, 4 months ago) by greg
Branch: MAIN
Log Message:
Added resources/ directory as requested by Rob G. and moved cmake_tests/ there

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    
9     file(TO_NATIVE_PATH "@radiance_SOURCE_DIR@/src/gen" gen_dir)
10     file(TO_NATIVE_PATH "@radiance_SOURCE_DIR@/src/cal/cal" cal_dir)
11     file(TO_NATIVE_PATH "@radiance_SOURCE_DIR@/src/rt" rt_dir)
12     file(TO_NATIVE_PATH "@radiance_SOURCE_DIR@/src/util" util_dir)
13     file(TO_NATIVE_PATH "@radiance_SOURCE_DIR@/src/px" px_dir)
14     file(TO_NATIVE_PATH
15     "@radiance_BINARY_DIR@/Downloads/Source/radiance_support/lib" lib_dir)
16     file(TO_NATIVE_PATH "@PERL_EXECUTABLE@" perl)
17     set(office_dir @office_dir@)
18     #office_dir is defined in CMakeLists.txt
19    
20     if(NOT EXISTS ${lib_dir}/pine.pic)
21     configure_file(${lib_dir}/pine.hdr ${lib_dir}/pine.pic COPYONLY)
22     endif()
23    
24    
25     if(WIN32)
26     file(TO_NATIVE_PATH "@radiance_BINARY_DIR@/bin/Release" rpath)
27     else()
28     file(TO_NATIVE_PATH "@radiance_BINARY_DIR@/bin" rpath)
29     endif()
30     set(ENV{RAYPATH}
31     "${gen_dir}${sep}${cal_dir}${sep}${rt_dir}${sep}${lib_dir}${sep}@office_dir@")
32     #set(ENV{PATH} "$ENV{PATH}${sep}${rpath}")
33     #look in dashboard tree ONLY
34     set(ENV{PATH} "${rpath}")
35     set(test_output_dir
36     @radiance_BINARY_DIR@/Downloads/Source/radiance_support/obj/office/test)
37     set(CMAKE_EXECUTABLE_SUFFIX @CMAKE_EXECUTABLE_SUFFIX@)
38     message(STATUS "raypath: $ENV{RAYPATH}")