ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/src/CMakeLists.txt
(Generate patch)

Comparing src/CMakeLists.txt (file contents):
Revision 1.3 by greg, Wed Apr 25 22:21:06 2012 UTC vs.
Revision 1.10 by greg, Thu Jul 24 01:24:01 2025 UTC

# Line 1 | Line 1
1 + # RCSid $Id$
2 +
3   if(UNIX)
4    find_library(LIB_M m DOC "Path to libm")
5    if(NOT LIB_M)
6      message(FATAL_ERROR "Cannot build radiance without libm.  Please set LIB_M")
7    endif()
8   else()
9 <  set(LIB_M )
9 >  set(LIB_M)
10   endif()
11  
12   include_directories(common)
# Line 13 | Line 15 | macro(create_version_file version_file)
15    add_custom_command(
16      OUTPUT "${version_file}"
17      COMMAND "${CMAKE_COMMAND}"
18 <    -DVERSION_OUT_FILE="${version_file}"
19 <    -DVERSION_IN_FILE="${radiance_SOURCE_DIR}/src/rt/VERSION"
20 <    -DVERSION_GOLD="${radiance_SOURCE_DIR}/src/rt/Version.c"
21 <    -P "${radiance_SOURCE_DIR}/src/rt/create_version.cmake"
18 >      -DRADIANCE_VERSION="${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_TWEAK}"
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 > macro(install_without_extension)
26 >  foreach(file IN ITEMS ${ARGN})
27 >    string(REGEX REPLACE "\\.[^.]*$" "" file_we ${file})
28 >    install(PROGRAMS "${file}"
29 >      DESTINATION "bin"
30 >      RENAME "${file_we}"
31      )
32 +  endforeach()
33   endmacro()
34 + macro(install_and_copy_without_extension)
35 +  foreach(file IN ITEMS ${ARGN})
36 +    string(REGEX REPLACE "\\.[^.]*$" "" file_we ${file})
37 +    install(PROGRAMS "${file}"
38 +      DESTINATION "bin"
39 +      RENAME ${file_we}
40 +    )
41 +    file(COPY "${file}" DESTINATION "${CMAKE_BINARY_DIR}/bin")
42 +    file(RENAME "${CMAKE_BINARY_DIR}/bin/${file}" "${CMAKE_BINARY_DIR}/bin/${file_we}")
43 +  endforeach()
44 + endmacro()
45   add_subdirectory(common)
46   add_subdirectory(cal)
47   add_subdirectory(cv)
# Line 29 | Line 52 | add_subdirectory(ot)
52   add_subdirectory(px)
53   add_subdirectory(rt)
54   add_subdirectory(util)
55 < # only use rvu if qt4 is found
56 < if(QT4_FOUND)
55 > if(NOT BUILD_HEADLESS AND BUILD_QT)
56 >  # only use qtrvu if qt5 is found
57    add_subdirectory(qtrvu)
58   endif()
36

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines