ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/CMakeLists.txt
Revision: 1.2
Committed: Fri Oct 28 20:46:47 2011 UTC (12 years, 11 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad4R1
Changes since 1.1: +11 -1 lines
Log Message:
Fixes to Version.c update in cmake build system

File Contents

# Content
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 find_package(OpenGL)
11 find_package(X11)
12
13 include_directories(common)
14 # create a macro to generate
15 macro(create_version_file version_file)
16 add_custom_command(
17 OUTPUT "${version_file}"
18 COMMAND "${CMAKE_COMMAND}"
19 -DVERSION_OUT_FILE="${version_file}"
20 -DVERSION_IN_FILE="${radiance_SOURCE_DIR}/src/rt/VERSION"
21 -DVERSION_GOLD="${radiance_SOURCE_DIR}/src/rt/Version.c"
22 -P "${radiance_SOURCE_DIR}/src/rt/create_version.cmake"
23 )
24 endmacro()
25 add_subdirectory(common)
26 add_subdirectory(cal)
27 add_subdirectory(cv)
28 add_subdirectory(gen)
29 add_subdirectory(hd)
30 add_subdirectory(meta)
31 add_subdirectory(ot)
32 add_subdirectory(px)
33 add_subdirectory(rt)
34 add_subdirectory(util)
35 # only use rvu if qt4 is found
36 if(QT4_FOUND)
37 add_subdirectory(qtrvu)
38 endif()
39