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

File Contents

# User Rev Content
1 greg 1.1 if(UNIX)
2     find_library(LIB_M m DOC "Path to libm")
3     if(NOT LIB_M)
4     message(FATAL_ERROR "Cannot build radiance without libm. Please set LIB_M")
5     endif()
6     else()
7     set(LIB_M )
8     endif()
9    
10     include_directories(common)
11 greg 1.2 # create a macro to generate
12     macro(create_version_file version_file)
13     add_custom_command(
14     OUTPUT "${version_file}"
15     COMMAND "${CMAKE_COMMAND}"
16     -DVERSION_OUT_FILE="${version_file}"
17     -DVERSION_IN_FILE="${radiance_SOURCE_DIR}/src/rt/VERSION"
18     -DVERSION_GOLD="${radiance_SOURCE_DIR}/src/rt/Version.c"
19     -P "${radiance_SOURCE_DIR}/src/rt/create_version.cmake"
20     )
21     endmacro()
22 greg 1.1 add_subdirectory(common)
23     add_subdirectory(cal)
24     add_subdirectory(cv)
25     add_subdirectory(gen)
26     add_subdirectory(hd)
27     add_subdirectory(meta)
28     add_subdirectory(ot)
29     add_subdirectory(px)
30     add_subdirectory(rt)
31     add_subdirectory(util)
32     # only use rvu if qt4 is found
33     if(QT4_FOUND)
34     add_subdirectory(qtrvu)
35     endif()
36