- function(GENERATE_VERSION_HEADER VERSION_FILE SIM_NAME)
- add_custom_target("${VERSION_FILE}")
- add_custom_command(TARGET "${VERSION_FILE}"
- COMMAND ${CUSTOM_SCRIPT_DIR}/generate_version_header.sh ${VERSION_FILE}
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- )
- add_dependencies("${SIM_NAME}" "${VERSION_FILE}")
- endfunction(GENERATE_VERSION_HEADER)
|