You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
duckstation/src/scmversion/CMakeLists.txt

18 lines
781 B
CMake

# SPDX-FileCopyrightText: 2019-2026 Connor McLaughlin <stenzek@gmail.com>
# SPDX-License-Identifier: CC-BY-NC-ND-4.0 + Packaging Restriction
#
# NOTE: In addition to the terms of CC-BY-NC-ND-4.0, you may not use this file to create
# packages or build recipes without explicit permission from the copyright holder.
add_custom_target(generate_scmversion
COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/gen_scmversion.sh"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/scmversion.cpp"
COMMENT "Checking if scmversion.cpp needs to be updated")
add_library(scmversion
"${CMAKE_CURRENT_BINARY_DIR}/scmversion.cpp"
scmversion.h
)
add_dependencies(scmversion generate_scmversion)