summaryrefslogtreecommitdiff
path: root/indra/cmake/BuildPackagesInfo.cmake
blob: 4e9baa61fe000d8acf16eba0a7f024bf61f43bf9 (plain)
1
2
3
4
5
6
7
8
9
10
# -*- cmake -*-
# Construct the version and copyright information based on package data.
include(Python)

add_custom_command(OUTPUT packages-info.txt
  COMMENT Generating packages-info.txt for the about box
  MAIN_DEPENDENCY ${CMAKE_SOURCE_DIR}/../autobuild.xml
  DEPENDS ${CMAKE_SOURCE_DIR}/../scripts/packages-formatter.py
  COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/../scripts/packages-formatter.py "${VIEWER_CHANNEL}" "${VIEWER_SHORT_VERSION}.${VIEWER_VERSION_REVISION}" > packages-info.txt
  )