blob: fe0f3ee8d2dc8b8cee672790ca09c7acd76724b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# Load a file and print variables and their values
#
# IN_FILE: path to a file to be included
# VARIABLES: list of variables to be printed
cmake_minimum_required(VERSION 3.16)
include("${IN_FILE}")
# Print a magic comment that the caller must look for
message(STATUS "---QtLoadFilePrintVars---")
# Print the variables
foreach(v IN LISTS VARIABLES)
message(STATUS "${v} ${${v}}")
endforeach()
|