Warning, /graphics/digikam/core/cmake/macros/MacroBuildDateHeader.cmake is written in an unsupported language. File is not indexed.
0001 # Macro to create build date header
0002 #
0003 # SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier, <caulier dot gilles at gmail dot com>
0004 #
0005 # SPDX-License-Identifier: BSD-3-Clause
0006 #
0007
0008 macro(BUILD_DATE_HEADER)
0009
0010 # Add a custom command to drive the build date script
0011
0012 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/templates/builddatescript.cmake.in"
0013 "${CMAKE_CURRENT_BINARY_DIR}/builddatescript.cmake"
0014 @ONLY)
0015
0016 # Add a custom target to drive the custom command.
0017
0018 add_custom_target(digikam-builddate ALL COMMAND ${CMAKE_COMMAND} -P
0019 "${CMAKE_CURRENT_BINARY_DIR}/builddatescript.cmake")
0020
0021 endmacro()