summaryrefslogblamecommitdiffstats
path: root/cmake/PreVersionPackaging.cmake
blob: e96015597f9230eaec531fccff6fa459e2422b1d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                              
# SPDX-License-Identifier: GPL-2.0
#
# Copyright (C) 2020 Manuel Bentele <development@manuel-bentele.de>
#

if(EXISTS ${VERSION_HEADER_INPUT_FILE})
    # copy generated version.h into the source repository for packaging purposes
    get_filename_component(VERSION_HEADER_OUTPUT_FILE_PATH ${VERSION_HEADER_OUTPUT_FILE} PATH)
    file(COPY ${VERSION_HEADER_INPUT_FILE} 
         DESTINATION ${VERSION_HEADER_OUTPUT_FILE_PATH})
endif(EXISTS ${VERSION_HEADER_INPUT_FILE})