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

File Contents

# User Rev Content
1 greg 1.1 set(VERSION_FILE "${radiance_BINARY_DIR}/src/hd/Version.c")
2     add_custom_command(
3     OUTPUT "${VERSION_FILE}"
4     COMMAND "${CMAKE_COMMAND}"
5     -DVERSION_OUT_FILE="${VERSION_FILE}"
6 greg 1.2 -DVERSION_IN_FILE="${radiance_SOURCE_DIR}/src/rt/VERSION"
7     -P "${radiance_SOURCE_DIR}/src/rt/create_version.cmake"
8 greg 1.1 )
9    
10     add_executable(genrhgrid genrhgrid.c holo.c)
11     target_link_libraries(genrhgrid rtrad)
12    
13     add_executable(rhcopy rhcopy.c clumpbeams.c holo.c holofile.c)
14     target_link_libraries(rhcopy rtrad)
15    
16     add_executable(rhinfo rhinfo.c holo.c holofile.c)
17     target_link_libraries(rhinfo rtrad)
18     if(NOT WIN32)
19 greg 1.3 set(VERSION_FILE "${radiance_BINARY_DIR}/src/hd/Version.c")
20     create_version_file("${VERSION_FILE}")
21    
22 greg 1.1 add_executable(rholo rholo.c rholo2.c rholo2l.c rholo3.c rholo4.c holo.c
23     holofile.c viewbeams.c ${VERSION_FILE})
24     target_link_libraries(rholo rtrad)
25     add_executable(rhoptimize rhoptimize.c clumpbeams.c holo.c holofile.c)
26     target_link_libraries(rhoptimize rtrad)
27     add_executable(rhpict
28     rhpict.c rhpict2.c holo.c holofile.c viewbeams.c ${VERSION_FILE})
29     target_link_libraries(rhpict rtrad)
30     install(TARGETS rholo rhoptimize rhpict RUNTIME DESTINATION bin)
31     endif()
32    
33     install(TARGETS genrhgrid rhcopy RUNTIME DESTINATION bin)