mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-22 23:24:22 +08:00
version.c in cmake
This commit is contained in:
parent
0172b0638b
commit
88ae955673
1 changed files with 7 additions and 0 deletions
|
@ -176,8 +176,15 @@ set (TARGET_SOURCES
|
||||||
src/util.c
|
src/util.c
|
||||||
src/wiegand_formats.c
|
src/wiegand_formats.c
|
||||||
src/wiegand_formatutils.c
|
src/wiegand_formatutils.c
|
||||||
|
${CMAKE_BINARY_DIR}/version.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT ${CMAKE_BINARY_DIR}/version.c
|
||||||
|
COMMAND sh ${CMAKE_SOURCE_DIR}/../tools/mkversion.sh > ${CMAKE_BINARY_DIR}/version.c || perl ${CMAKE_SOURCE_DIR}/../tools/mkversion.pl > ${CMAKE_BINARY_DIR}/version.c || ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/../common/default_version.c ${CMAKE_BINARY_DIR}/version.c
|
||||||
|
DEPENDS ${CMAKE_SOURCE_DIR}/../common/default_version.c
|
||||||
|
)
|
||||||
|
|
||||||
set(ADDITIONAL_SRC "")
|
set(ADDITIONAL_SRC "")
|
||||||
set(ADDITIONAL_LNK "")
|
set(ADDITIONAL_LNK "")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue