function(makeogrannote_definition)
  set(SCRIPT_NAME "${NCBI_CURRENT_SOURCE_DIR}/makeogrannote.py")
  if(WIN32 OR XCODE)
    set(DEST_DIR "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$<CONFIG>")
  else()
    set(DEST_DIR "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
  endif()

  add_custom_target(makeogrannote
    COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SCRIPT_NAME}" "${DEST_DIR}"
    DEPENDS ${SCRIPT_NAME}
    SOURCES ${SCRIPT_NAME})
endfunction()

NCBI_begin_custom_target(makeogrannote)
  NCBI_custom_target_definition(makeogrannote_definition)
NCBI_end_custom_target()


