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