--- ray/src/hd/CMakeLists.txt 2011/10/22 22:38:10 1.1 +++ ray/src/hd/CMakeLists.txt 2011/10/28 20:46:47 1.3 @@ -3,8 +3,8 @@ add_custom_command( OUTPUT "${VERSION_FILE}" COMMAND "${CMAKE_COMMAND}" -DVERSION_OUT_FILE="${VERSION_FILE}" - -DVERSION_IN_FILE="${radiance_SOURCE_DIR}/src/util/VERSION" - -P "${radiance_SOURCE_DIR}/src/common/create_version.cmake" + -DVERSION_IN_FILE="${radiance_SOURCE_DIR}/src/rt/VERSION" + -P "${radiance_SOURCE_DIR}/src/rt/create_version.cmake" ) add_executable(genrhgrid genrhgrid.c holo.c) @@ -16,6 +16,9 @@ target_link_libraries(rhcopy rtrad) add_executable(rhinfo rhinfo.c holo.c holofile.c) target_link_libraries(rhinfo rtrad) if(NOT WIN32) + set(VERSION_FILE "${radiance_BINARY_DIR}/src/hd/Version.c") + create_version_file("${VERSION_FILE}") + add_executable(rholo rholo.c rholo2.c rholo2l.c rholo3.c rholo4.c holo.c holofile.c viewbeams.c ${VERSION_FILE}) target_link_libraries(rholo rtrad)