- function(SAVE_PROGVERSION SIM_NAME)
- add_custom_target("progversion.txt")
- add_custom_command(TARGET "progversion.txt"
- COMMAND hg tip > ${CMAKE_CURRENT_BINARY_DIR}/progversion.txt
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- )
- add_dependencies("${SIM_NAME}" "progversion.txt")
- endfunction(SAVE_PROGVERSION)
|