summaryrefslogtreecommitdiffstats
path: root/Tests/SimpleInstallS2/PackageScript.cmake
blob: 36429e2f7576ab60ffd46e77cfa69db3a53d39e9 (plain)
1
2
3
4
5
6
7
8
9
10
MESSAGE("This is packaging script")
MESSAGE("It writes a file with all variables available in ${CMAKE_INSTALL_PREFIX}/AllVariables.txt")

FILE(WRITE ${CMAKE_INSTALL_PREFIX}/AllVariables.txt "")
GET_CMAKE_PROPERTY(res VARIABLES)
FOREACH(var ${res})
  FILE(APPEND ${CMAKE_INSTALL_PREFIX}/AllVariables.txt
             "${var} \"${${var}}\"\n")
ENDFOREACH(var ${res})