ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/InstallRules/CMakeLists.txt
Revision: 1.2
Committed: Wed Apr 25 22:21:06 2012 UTC (12 years ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 1.1: +15 -0 lines
Log Message:
Changes to support new Cmake build system

File Contents

# User Rev Content
1 greg 1.2 if(X11_FOUND)
2     get_filename_component(X11_LIBRARY_DIR ${X11_X11_LIB} PATH)
3     endif()
4     if(TIFF_LIBRARY)
5     get_filename_component(TIFF_LIBRARY_DIR ${TIFF_LIBRARY} PATH)
6     if(WIN32)
7     #also need the location of libtiff3.dll on Windows.
8     #By default this is ../bin relative to TIFF_LIBRARY_DIR.
9     set(TIFF_BINARY_DIR "${TIFF_LIBRARY_DIR}/../bin")
10     get_filename_component(TIFF_BINARY_DIR "${TIFF_BINARY_DIR}" ABSOLUTE)
11     set(TIFF_LIBRARY_DIRS "${TIFF_LIBRARY_DIR};${TIFF_BINARY_DIR}")
12     else()
13     set(TIFF_LIBRARY_DIRS "${TIFF_LIBRARY_DIR}")
14     endif()
15     endif()
16 greg 1.1 configure_file(
17     "${CMAKE_CURRENT_SOURCE_DIR}/dependencies.cmake.in"
18     "${CMAKE_CURRENT_BINARY_DIR}/dependencies.cmake"
19     @ONLY
20     )
21     install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/dependencies.cmake")
22