qt6windows7/cmake/QtGenerateVersionScript.cmake

16 lines
381 B
CMake
Raw Normal View History

2023-10-30 06:33:08 +08:00
cmake_minimum_required(VERSION 3.16)
if(EXISTS "${PRIVATE_CONTENT_FILE}")
file(READ "${PRIVATE_CONTENT_FILE}" PRIVATE_CONTENT)
endif()
if(NOT EXISTS "${IN_FILE}")
message(FATAL_ERROR "Input file ${IN_FILE} doesn't exists")
endif()
if(OUT_FILE STREQUAL "")
message(FATAL_ERROR "Output file is not specified")
endif()
configure_file("${IN_FILE}" "${OUT_FILE}" @ONLY)