summaryrefslogtreecommitdiffstats
path: root/Tests/SimpleInstallS2/PackageScript.cmake
blob: 3567a2f43b52894e3196c4f34fc65a1d528f13e8 (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})