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