ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/cmake_tests/setup_paths.cmake.in
Revision: 1.2
Committed: Wed Apr 25 22:21:06 2012 UTC (12 years, 2 months ago) by greg
Branch: MAIN
CVS Tags: rad4R2P2, rad4R2P1, rad5R1, rad4R2, rad5R0
Changes since 1.1: +9 -2 lines
Log Message:
Changes to support new Cmake build system

File Contents

# Content
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}")