summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/DEB/Helpers.cmake
blob: 4ed3fbdae3447dbf2f5cdfffed017ada6bae46ba (plain)
1
2
3
4
5
6
7
8
9
10
set(ALL_FILES_GLOB "*.deb")

function(getPackageContent FILE RESULT_VAR)
  execute_process(COMMAND ${DPKG_EXECUTABLE} -c ${FILE}
          OUTPUT_VARIABLE package_content_
          ERROR_QUIET
          OUTPUT_STRIP_TRAILING_WHITESPACE)

  set(${RESULT_VAR} "${package_content_}" PARENT_SCOPE)
endfunction()