# Add your source files
set(SOURCES

)

# Add your header files
set(HEADERS
    version_info.h
)

# Generate the version_info.c file as a build step
add_custom_command(
    OUTPUT version_info.c
    COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/generate_version_info.py
    DEPENDS generate_version_info.py
    COMMENT "Generating version_info.c"
)

# Add the generated file to the list of sources
list(APPEND SOURCES ${CMAKE_CURRENT_BINARY_DIR}/version_info.c)

add_custom_target(generate_version_info DEPENDS version_info.c)

# Add the target
add_library(Revision STATIC ${SOURCES} ${HEADERS})
add_dependencies(Revision generate_version_info)
target_include_directories(Revision PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})